text
stringlengths
3.08k
15.5k
import { PnlpConstant } from '@app/model/constants'; import { Article, ArticleValidator } from '@app/model/entities/article'; import { Publication, PublicationMetadata, PublicationRecord, PublicationValidator, } from '@app/model/entities/publication'; import { EnsName, EthereumAddress, IpfsHash, IpnsHash, Trans...
<gh_stars>1-10 import { ApiSchema, fakeRouter } from "../src"; import type { Test, CallbackHandler } from "supertest"; import * as supertest from "supertest"; import * as express from "express"; import * as path from "path"; type SuperTestMethod = (url: string, callback?: CallbackHandler) => Test; const request = (ap...
<filename>packages/server/test/functional/controllers/server_status_controller.anonymus.spec.ts import {suite, test, timeout} from '@testdeck/mocha'; import {Bootstrap, Config, Injector} from '@typexs/base'; import { API_CTRL_SERVER_CONFIG, API_CTRL_SERVER_CONFIG_KEY, API_CTRL_SERVER_ROUTES, C_API, K_CONFIG_A...
import * as puppeteer from 'puppeteer'; import * as cliProgress from 'cli-progress'; import { targetURL, email, password, perfect as perfectWhenSubject, search as searchText, } from './credentials.json'; import console = require('console'); declare const $: JQueryStatic; const isTask = targetURL.includes('...
<reponame>flyon/ontologies<gh_stars>0 export enum TermType { NamedNode = "NamedNode", BlankNode = "BlankNode", Literal = "Literal", } export type TermTypes = "NamedNode" | "BlankNode" | "Literal" export type Indexable = number | string export interface RDFObject { id?: Indexable termType?: TermType | TermTy...
<reponame>tunylund/tiny-game-engine<gh_stars>0 import { vector, xyz, XYZ, zero, equal } from './xyz' export enum Direction { leftdown = 'leftdown', left = 'left', leftup = 'leftup', upleft = 'upleft', up = 'up', upright = 'upright', rightup = 'rightup', right = 'right', rightdown = 'rightdown', dow...
import type { AccountDataResponse, MempoolTransaction, Transaction, } from '@stacks/stacks-blockchain-api-types'; import { Account } from '@stacks/wallet-sdk'; import { atomFamily, atomWithDefault, atomWithStorage } from 'jotai/utils'; import { atom } from 'jotai'; import BigNumber from 'bignumber.js'; import de...
import React, { useState, useCallback, useMemo, ReactNode, memo, useEffect, } from "react"; import { useTheme } from "styled-components/native"; import { Unit, Currency, AccountLike } from "@ledgerhq/live-common/lib/types"; import { getAccountCurrency, getAccountUnit, } from "@ledgerhq/live-common/lib/a...
/** * Test NativeScript Android Activity * * @link https://github.com/NativeScript/android-runtime/issues/981 */ // CONFIG: const ACCESS_TOKEN : any = 'set access token here'; const mapStyle = com.mapbox.mapboxsdk.maps.Style.LIGHT; // const mapStyle = 'URL of custom style'; // -------------------------------------...
import { PlexObject } from './base/plexObject'; import { ChapterData, MarkerData, MediaData, MediaPartData, MediaPartStreamData, } from './video.types'; /** * Base class for media tags used for filtering and searching your library * items or navigating the metadata of media items in your library. Tags are ...
<filename>integration_tests/react_native_0_60x_multibundle/__tests__/multiBundle.test.ts import path from 'path'; import fetch from 'node-fetch'; import fs from 'fs'; import { Instance, startServer, stopServer } from '../../utils/server'; import { installDeps, cleanup } from '../../utils/common'; import { runHaulSync }...
<filename>src/store/plasma/assets/index.ts import { AssetsState, HasAssetsState, AssetsContext } from "./types" import { getStoreBuilder } from "vuex-typex" // assets (make this a sepoerate module) import * as getters from "./getters" import * as mutations from "./mutations" import { CardDetail, PackDetail } from "../...
/** * This file is part of Serlo.org API * * Copyright (c) 2020-2021 Serlo Education e.V. * * 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-...
import React from 'react'; import {Location} from 'history'; import {browserHistory} from 'react-router'; import isEqual from 'lodash/isEqual'; import pick from 'lodash/pick'; import {IconWarning} from 'app/icons'; import {t} from 'app/locale'; import BarChart from 'app/components/charts/barChart'; import ErrorPanel f...
import { Button, Divider, Select } from "@material-ui/core" import { MoreVert } from "@material-ui/icons" import Dialog from "material-ui/Dialog" import IconButton from "material-ui/IconButton" import IconMenu from "material-ui/IconMenu" import MenuItem from "material-ui/MenuItem" import SelectField from "material-ui/S...
import { ObjectId } from "mongodb"; import _ from 'lodash'; import { ApplicationError } from '../lib/errors'; import { vectorize } from '../lib/simple-tools'; import { wxService } from '../services/wexin'; import { JiebaBm25EnabledCollection } from '../lib/mongodb/bm25'; import { jiebaService } from '../services/nlp'; ...
// ------------------------------------------------------------------------------ // // 分类 // class: DiffClass // author: 喵大斯( h5devs.com/h5devs.net ) // created: 2017/7/23 // copyright (c) 2015 喵大斯( <EMAIL> ) // // ------------------------------------------------------------------------------ import * as React from 'r...
<filename>municipal_finance/static/bower_components/vega-lite/src/compile/legend.ts<gh_stars>10-100 import {FieldDef} from '../fielddef'; import {LegendProperties} from '../legend'; import {COLOR, SIZE, SHAPE, Channel} from '../channel'; import {title as fieldTitle} from '../fielddef'; import {AREA, BAR, TICK, TEXT, L...
<gh_stars>0 import { Component,ChangeDetectorRef } from '@angular/core'; import { HomeNewsComponent as BaseComponent } from '../../../../../app/home-page/home-news/home-news.component'; import { environment } from '../../../../../environments/environment'; import { RestRequestMethod } from '../../../../../app/core/da...
// The MIT License (MIT) // // Copyright (c) 2017 Firebase // // 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 without limitation the rights // to use, copy, ...
import {captureException, init as SentryInit} from '@sentry/node'; import {AWSError, Lambda, S3} from 'aws-sdk'; import {PromiseResult} from 'aws-sdk/lib/request'; import middy from 'middy'; import { cors } from 'middy/middlewares'; import { v4 as uuid } from 'uuid'; SentryInit({ dsn: 'https://f56a0e1f5022472982e901e...
<reponame>renovate-bot/rushstack // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. import stringArgv from 'string-argv'; import { CommandLineIntegerParameter } from '../parameters/CommandLineIntegerParameter'; ...
import { Component } from '@angular/core'; import * as FusionCharts from 'fusioncharts'; const dataUrl = 'https://s3.eu-central-1.amazonaws.com/fusion.store/ft/data/plotting-multiple-series-on-time-axis-data.json'; const schema = [ { name: 'Time', type: 'date', format: '%d-%b-%y' }, { name: 'Typ...
<reponame>IKalonji/SolAfrique import { Component, EventEmitter, Input, OnChanges, OnInit, Output, SimpleChanges } from "@angular/core"; import { AlertController, LoadingController, Platform } from '@ionic/angular'; import { ApiServiceService } from '../services/api-service.service'; import { ADAPTER_EVENTS } from "@w...
/* * Copyright (c) 2021 CohesionForce Inc | www.CohesionForce.com | <EMAIL> * * 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 * * Un...
/** * https://webgl2fundamentals.org/webgl/lessons/webgl-cube-maps.html */ import * as twgl from 'twgl.js'; import {mat4, vec3} from 'gl-matrix'; import { create, init } from "./utils/gl"; import {degToRad} from './utils/transformation'; { const gl = create('canvasRight'); init(gl); const vs = `#version 300 ...
<filename>src/backend/deny-list/deny-list.ts import * as fs from 'fs'; import * as os from 'os'; import * as path from 'path'; import { Metric, MetricOptions, Statistic } from '@aws-cdk/aws-cloudwatch'; import * as events from '@aws-cdk/aws-events'; import * as targets from '@aws-cdk/aws-events-targets'; import * as la...
import * as fontManager from "font-manager" import * as fontkit from "fontkit" import * as fs from "fs" const weights = { normal: "400", bold: "700" } export interface FontStyle { fontFamily?: string, fontWeight?: string, fontStyle?: string, postscriptName?: string } const fonts = {} const fontFallbacks =...
<filename>src/app/pages/home/home-add-edit/home-add-edit.component.ts import { Component, OnInit, Renderer2, ViewChild, ElementRef } from '@angular/core'; import { AngularEditorConfig } from '@kolkov/angular-editor'; import { Slider } from 'app/shared/models'; import { ActivatedRoute, Router } from '@angular/router'; i...
import {NgModule} from '@angular/core'; import {ExtraOptions, PreloadAllModules, RouterModule, Routes} from '@angular/router'; import {AuthenticatedGuard} from './core/guards/authenticated.guard'; import {DashComponent} from './dash/dash.component'; import {AdminLayoutComponent} from './layout/admin-layout/admin-layout...
import {Column} from '../Column'; import {Item} from '../Item'; import {getImageRatio, RatioLimits} from '../Utility'; import {AbstractGallery, GalleryOptions, ModelAttributes} from './AbstractGallery'; export interface MasonryGalleryOptions extends GalleryOptions { columnWidth: number; ratioLimit?: RatioLimit...
import React from "react"; import PropTypes from 'prop-types' import { colors, opacity } from "../theme"; import { CorePacket } from "../../../server/shared/interfaces"; import { escapeNonUnicode } from "../../../server/shared/shared"; import { Link } from "react-router-dom"; import { blendrgba } from "../../../server/...
<reponame>andyrichardson/workbox<filename>packages/workbox-precaching/src/PrecacheStrategy.ts /* Copyright 2020 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ import {copyResponse} from 'workbox-core/co...
// @ts-nocheck // TODO: // 1. test these method implementations using encoded characters // look at the spec to figure out whether we SHOULD be decoding them // or leaving them as encoded. also look at UrlParse to see what it does // // 2. there is a bug when handling about:blank which borks it and // turns it into ab...
<reponame>oodavy41/RLYEH<filename>src/Rlyeh/baseModels.ts import { att_c, att_n, att_p } from "./GLOBAL/GLOBAL"; import { AMaterial, MTL_TYPE } from "./object/Material"; import { BasePhoneMat } from "./object/materials/BasePhoneMat"; import { BasePhoneShadowMat } from "./object/materials/basePhoneShadowMat"; import { S...
// Copyright 2019-2022 @polkadot/extension-plus authors & contributors // SPDX-License-Identifier: Apache-2.0 /* eslint-disable header/header */ /* eslint-disable react/jsx-max-props-per-line */ import { ThumbsUpDown as ThumbsUpDownIcon } from '@mui/icons-material'; import { FormControl, FormHelperText, Grid, InputAdo...
import React, { useRef } from 'react' import dynamic from 'next/dynamic' import { ChildrenMoveable, EditorState } from '../../app/types' import { useSelector, useDispatch } from 'react-redux' import { LayoutSize, LayoutPropTypes, layoutSizeToString, initialData, } from '../../inspector/Layout' import { ...
<filename>x-pack/test/plugin_api_integration/plugins/sample_task_plugin/server/plugin.ts /* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic Li...
interface DirectiveArrayItem { name: string; options: any; } const directiveArray: DirectiveArrayItem[] = []; function directive(name: string, fn: Function): void { directiveArray.push({ name: name, options: fn(), }); } function compile(element: Element, scope: any): void { if (element.nodeType === 3...
import * as d3 from "d3" // membership data - defined in the global scope outside this module, in the template type MembershipCount = { count: number, startDate: string, } type MembershipTotals = { cards: Array<MembershipCount>, logbooks: Array<MembershipCount>, members: Array<MembershipCount>, }...
import Canvas from 'canvas'; import { MessageAttachment, MessageEmbed } from 'discord.js'; import { fetchPlayer } from '../../../api/modules/players'; import { toResults } from '../../../api/modules/snapshots'; import { BossResult, MetricType, Player } from '../../../api/types'; import config from '../../../config'; im...
import { ForbiddenError, NotImplementedError, UnauthorizedError, isError, } from '@essential-projects/errors_ts'; import {IHttpClient} from '@essential-projects/http_contracts'; import {IIdentity} from '@essential-projects/iam_contracts'; import {ExternalAccessor, ManagementApiClient} from '@process-engine/management...
<filename>src/controllers/auth.ts import * as qrcode from 'qrcode-terminal'; import { from, Observable, race } from 'rxjs'; import {EvEmitter, Spin} from './events' import { screenshot } from './initializer' import { ConfigObject } from '../api/model'; import { Page } from 'puppeteer'; const timeout = ms => new Promis...
import { Injectable } from '@angular/core'; import { SettingService } from './setting.service'; import Web3 from 'web3'; import { provider } from 'web3-core'; import { Token } from '../model/token.model'; import { environment } from '../../environments/environment'; import { CryptoService } from './crypto.service'; im...
#!/usr/bin/env node import { Octokit } from '@octokit/rest'; import { env } from 'process'; import * as fs from 'fs'; import { exec } from 'child_process'; import { URL } from 'url'; const octokit = new Octokit({ timeZone: 'UTC', baseUrl: env.GITHUP_API, auth: env.GITHUB_TOKEN }); if (module.id === '.') { if (proce...
import { State, Selector, NgxsOnInit, StateContext, Action } from "@ngxs/store"; import { FirebaseTokenResult, IAppPrivileges, IAuthStateModel, User } from './auth.model'; import { AngularFireAuth } from '@angular/fire/auth'; import { LoadSession, LoginSuccess, LoginFail, LogoutSuccess, LoginWithEmailAndPassword, Logou...
import { useCombobox } from "downshift"; import { useState, useEffect, useRef, useCallback } from "react"; import { useTranslation } from "react-i18next"; import type { SelectOptionT } from "../../api/types"; import { exists } from "../../common/helpers/exists"; import { useClickOutside } from "../../common/helpers/us...
/* * Copyright (C) 2019, 2020 <NAME> * All rights reserved. * * This software may be modified and distributed under the terms * of the MIT license. * * See the LICENSE file for details. */ import { Blueprint } from "../../../../src/rpp"; import { Person, Role, Team } from "../../../../src/rpp/team"; import { V...
<gh_stars>1-10 import { type } from 'os'; import { Arg, Field, FieldResolver, InputType, Mutation, ObjectType, Query, Resolver, Root } from 'type-graphql'; import { getCustomRepository } from 'typeorm'; import { Card, CardStatus, CheckList, Labels } from '../database/entity/Card'; import { Users } from '../dat...
<filename>core/core/src/features/virtualKeyboard/virtualKeyboard.util.ts import { CSSProperties } from 'react'; import { EFunctionKeys, ELayoutNames } from '../../definitions/'; import formattingHelper from '../../helpers/formatting.helper'; import { IKeyAltChars, ILayoutTranslations } from './redux/typings'; expor...
import * as React from "react" import * as Modal from './Modal' import Button from '../../components/widgets/Button' import RefreshIcon from '../../components/widgets/RefreshIcon' import dict from "../../lang"; const DSTargetTStr = dict.DSTargetTStr; export default class ConnectorsModal extends React.Component<any, any...
import React from 'react'; import axios from 'axios'; import { getWrapperAsync } from '@kogito-apps/common'; import TaskForm from '../TaskForm'; import { TaskInfo, TaskInfoImpl } from '../../../../model/TaskInfo'; import { UserTaskInstance } from '../../../../graphql/types'; import ApplyForVisaForm from '../../../../ut...
<gh_stars>10-100 interface Lookup { path: string; node: FSNode; } interface FSStream { } interface FSNode { } export interface FS { lookupPath(path: string, opts: any): Lookup; getPath(node: FSNode): string; isFile(mode: number): boolean; isDir(mode: number): boolean; isLink(mode: number): boolean; i...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; import { Doctor } from '../Models/Doctor'; import {HttpClientModule} from '@angular/common/http'; import {Consultation} from '../models/Consultation'; import {Appoi...
<filename>src/stacking-planner.ts<gh_stars>1-10 import { StackingPlan, StackingPlanner, VerticalSpaceFilter, } from "./types"; interface StackingPlannerOptions { containerHeight?: number; containerMarginTop?: number; containerMarginBottom?: number; direction?: "up" | "down"; } interface DefaultStackingP...
import { Source, Manga, Chapter, ChapterDetails, HomeSection, SearchRequest, PagedResults, SourceInfo, MangaUpdates, TagType, ContentRating, RequestManager } from "paperback-extensions-common" import { parseLeCercleDuScanChapterDetails, parseLeCercleDuScanChapter...
import { IDbExpression, IDbTable, IDbColumn, IDbSchema, IDbExpressionVariable, IDbColumnIdVariable, IDbColumnNameVariable, IDbVariable, } from "./DbSchemaInterface"; import { getPgSelector, getPgRegClass } from "./helpers"; import { IColumnExtensionContext, IColumnExtension } from "./columnExtensions/IC...
var mkdirp = require('mkdirp'); import {DelegatingHost} from './delegating_host'; import * as fs from 'fs'; import * as path from 'path'; import * as ts from 'typescript'; const DEBUG = true; export interface Extension { /** * Configuration options supplied in tsconfig.json */ options: { // Location whe...
import { DrawRectInterpolator, Id, MaybeConstant, MaybeConstantKind, } from "divetree-core"; import * as React from "react"; import { roundPixel } from "./round-pixel"; interface Props { interpolator: DrawRectInterpolator; progressProperty: string; children: React.ReactNode; notFocusedStyle: RectStyle;...
<reponame>fes300/DefinitelyTyped // Type definitions for signature_pad 2.3 // Project: https://github.com/szimek/signature_pad // Definitions by: <NAME> <https://github.com/AbubakerB> // <NAME> <https://github.com/jrmihalick> // <NAME> <https://github.com/leejaedus> // Definitions: https...
<reponame>briangershon/planning-poker import { getCurrentUserFromSessionId, getCurrentUserFromCookie } from './auth'; import { WebSocketServer, WebSocketSession } from './websocket/websocket-server'; import { GameState } from './gamelogic/gamestate'; // TODO: Remove Type imports once this is moved into GameState o...
import sync from "framesync" import { applyBoxDelta, applyTreeDeltas, resetBox, } from "../geometry/delta-apply.js" import { calcBoxDelta } from "../geometry/delta-calc.js" import { createBox, createDelta } from "../geometry/models.js" import { translateAxis } from "../geometry/transforms.js" import { buildProjec...
<gh_stars>1-10 /* eslint-disable @typescript-eslint/no-unused-vars */ import { Client, CLIENT_EVENTS } from '@walletconnect/client'; import { ClientOptions, IClient, PairingTypes, SessionTypes, ClientTypes } from '@walletconnect/types'; import { ethers } from 'ethers'; import { EventEmitter } from 'events'; import debu...
// WebRidge Design import React, { useState, useEffect, useRef } from 'react' import { Translate } from 'react-translated' import { StyleSheet, ScrollView, View, StatusBar, Platform, Image, Linking, Alert, } from 'react-native' import { Button, Text } from 'react-native-paper' import BluetoothStateMana...
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import ExpansionPanel from '@material-ui/core/ExpansionPanel'; import ExpansionPanelSummary from '@material-ui/core/ExpansionPanelSummary'; import ExpansionPanelDetails from '@material-ui/core/Expansion...
import { useEffect, useState } from "react"; import { FlexContainer, FlexFullWidthCenter, } from "./components/layouts/FlexContainers"; import { GifImage } from "./components/GifImage"; import { GiphyApiModel, IGiphyApiSearchResponse } from "./services/giphy.api"; import { useDataFetcher } from "./hooks/api/useData...
<reponame>PlatonaM/web-ui /* * Copyright 2020 InfAI (CC SES) * * 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...
<reponame>ezrashim/novo-elements<filename>src/app/pages/elements/dropdown/DropdownDemo.ts // NG2 import { Component } from '@angular/core'; // APP let DropdownDemoTpl = require('./templates/DropdownDemo.html'); let CustomClassTpl = require('./templates/CustomClassDemo.html'); let AppendToBodyTpl = require('./templates/...
import * as React from 'react'; // import BorderColorIcon from '@material-ui/icons/BorderColor'; // import debounce from '../../utils/noteUtils'; // import { RecurserNote } from '../../types/RecurserNote'; import { makeStyles, createStyles, Theme, TextField, Button, } from '@material-ui/core'; import { MarkdownFie...
<reponame>mntm-lib/http<filename>src/server.ts import type { RequestListener, Server, ServerOptions } from 'http'; import type { AddressInfo } from 'net'; import type { TemplatedApp, us_listen_socket } from 'uws'; import { EventEmitter } from 'events'; import { isIP } from 'net'; import { EADDRINUSE } from 'cons...
import {Component, OnInit, Input, Output, EventEmitter, ViewContainerRef, ViewChild, ReflectiveInjector, ComponentFactoryResolver, ChangeDetectionStrategy} from '@angular/core'; import { NgFor, NgIf } from '@angular/common'; import { FormGroup, FormBuilder, FormControl } from '@angular/forms' import {AppServ...
import { Command } from '../framework'; import got from 'got'; import { MessageEmbed, EmbedFieldData } from 'discord.js'; interface MultiSearchResult { id: number; media_type: string; } interface DetailedSearchResult { title: string | null; name: string | null; overview: string | null; poster_path: string...
import decodeBuffer from '@secret-agent/commons/decodeBuffer'; import IResourceMeta from '@secret-agent/interfaces/IResourceMeta'; import { Database as SqliteDatabase } from 'better-sqlite3'; import ResourceType from '@secret-agent/interfaces/ResourceType'; import IResourceHeaders from '@secret-agent/interfaces/IResour...
import { useRef, useEffect, useState } from 'react'; import { useOrientation, useMedia } from 'react-use'; import { useFullpageOverflow } from 'helpers/use-fullpage-overflow'; import ReactModal from 'react-modal'; // components import { Text, Image, Icon } from 'design-system/atoms'; // assets import AirWaterMineralO...
<gh_stars>0 import { types, flow, applySnapshot } from 'mobx-state-tree'; import { Dimensions, Platform, PlatformIOSStatic, NativeModules, AsyncStorage, Linking, processColor } from 'react-native'; import { CustomTabs, ANIMATIONS_SLIDE } from 'react-native-custom-tabs'; import CodePush from 'react-native-code-push'; im...
<filename>src/dev/src/app/components/tabs/tabs.demo.ts import { BehaviorSubject } from 'rxjs'; import { Component, OnInit } from '@angular/core'; import { DemoComponentData } from '../../utils/demo-component-data'; interface DemoComponentsList { [key: string]: DemoComponentData; } @Component({ selector: 'tabs-d...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 ...
import React, { useState, useEffect } from "react" import styled, { css } from "styled-components" import { mq } from "@style/media-queries" import NavList from "./nav-list/nav-list" import { layout, type, appearance } from "@style/design-tokens" import Icon from "@components/icon/icon" import { useThemeSwitchContext }...
import * as React from 'react'; import { withTheme, Theme } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; import CardHeader from '@material-ui/core/CardHeader'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import CheckBoxOutline from '@mater...
<reponame>MQpeng/delon<filename>schematics/ng-update/upgrade-rules/v12/index.ts import { colors } from '@angular/cli/utilities/color'; import { chain, Rule, SchematicContext, Tree } from '@angular-devkit/schematics'; import { updateWorkspace } from '@schematics/angular/utility/workspace'; import { addPackage, BUI...
<reponame>nanostores/react<gh_stars>1-10 import './setup.js' import { STORE_UNMOUNT_DELAY, mapTemplate, onMount, atom, map } from 'nanostores' import React, { FC, ReactNode } from 'react' import { render, act, screen } from '@testing-library/react' import { equal, is } from 'uvu/assert' import { delay } from ...
<filename>src/Game/HitObjects/Spinner.ts import { Container } from '@pixi/display'; import { IPointData } from '@pixi/math'; import { Text } from '@pixi/text'; import { HitObjectTypes } from '.'; import { HitResultType } from '../HitResultController'; import { loadSpinnerSprites, SpinnerData, SpinnerSprites } fro...
<filename>src/index.ts import PQueue, { Queue, Options, QueueAddOptions } from 'p-queue'; import { AxiosInstance } from 'axios'; import YandexTranslateError from './error'; import createHttpAgent from './tools/agent'; interface IYandexTranslateQueueOptions extends Options<Queue<QueueAddOptions>, QueueAddOptions> { } ...
<gh_stars>0 import {Injectable} from '@angular/core'; import {ActivatedRouteSnapshot, Resolve, RouterStateSnapshot} from '@angular/router'; import {Assets} from '../models/assets'; import {from, Observable} from 'rxjs'; import {map, mergeAll, mergeMap, reduce, take} from 'rxjs/operators'; import * as THREE from 'three'...
<reponame>k-schneider/ng-bootstrap import {Component, Input, OnChanges, TemplateRef, forwardRef, OnInit} from '@angular/core'; import {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms'; import {NgbCalendar} from './ngb-calendar'; import {NgbDate} from './ngb-date'; import {NgbDatepickerService} from './dat...
<reponame>boostvolt/nextra import React from 'react' import { PageMapItem } from 'nextra' import getTitle from 'title' import defaultThemeContext from '../misc/theme-context' function getMetaTitle(meta: string | Record<string, any>) { if (typeof meta === 'string') return meta if (typeof meta === 'object') return ...
<filename>src/modules/contact/contact.controller.ts<gh_stars>0 import { Body, Controller, Delete, Get, HttpStatus, Logger, Param, Patch, Post, Response, Query, BadRequestException, UseInterceptors, Request } from '@nestjs/common'; import { ContactService } from './contact.service'; import { ...
<reponame>eisgroup/kraken-rules /* * Copyright 2018 EIS Ltd and/or one of its affiliates. * * 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/LICENS...
import { dispatch as navDispatch, ScreenFC } from '@berty/navigation' import { useAppDispatch } from '@berty/hooks' import { PersistentOptionsKeys, setPersistentOption, } from '@berty/redux/reducers/persistentOptions.reducer' import { useNotificationsInhibitor, useThemeColor } from '@berty/store' import { CommonActio...
import { program, Command } from 'commander'; const leven = require('leven'); import * as ora from 'ora'; import { executeHook, getSettings } from '@malagu/cli-common'; import { loadCommand, loadContext } from './util'; const chalk = require('chalk'); const updateNotifier = require('update-notifier'); const pkg = requ...
const dialog: Array<{ es: string; en: string }> = [ { es: "Hola, como está usted?", en: "Hello, how are you?" }, { es: "Hola, cómo estás?", en: "Hello, how are you?" }, { es: "Como está ella?", en: "How is she?" }, { es: "Hola, buenos días.", en: "Hello, good morning." }, { es: "Buenas tardes.", en: "Good afternoo...
import { PluginAPiFunc } from "./plugin-api"; import { GlobalContext } from "./context-util"; import { utf8Pattern, binaryPattern } from "./patterns"; import { DB } from "./db-util"; import { stat, readJSON, writeJSON, mkdir, readJson, readJsonSync, writeJSONSync, removeSync, writeFile, readJSONSync...
import React, { useEffect, useState } from 'react'; import { makeStyles, Theme, createStyles, Grid, Typography, InputAdornment, TextField, FormControl, IconButton, InputLabel, OutlinedInput, Checkbox, FormControlLabel, createMuiTheme, ThemeProvider } from '@material-ui/core'; import background from "assets/img/backgrou...
class Base3dSceneLayer extends Base2dSceneLayer { public camMoveFun: Function; constructor() { super(); } protected upFrame(): void { Scene_data.context3D.setWriteDepth(true); Scene_data.context3D.setDepthTest(true); tl3d.TimeUtil.update(); //这是是移动2D的基础坐标 ...
import formStyles from "./layout/FormLayout.module.css"; import styles from "./SignUpForm.module.css"; import { ReactComponent as UploadIcon } from "../assets/svg/upload.svg"; import { useClerk, useSignUp, withClerk } from "@clerk/clerk-react"; import { useRef, useState, KeyboardEvent } from "react"; import { useForm }...
<gh_stars>10-100 import { AveLib } from "../AveLib"; import { Codepage, CultureId, CultureInfo } from "../Culture"; import { IResourceProvider, ResourceSource } from "../Io"; import { Window } from "./Control/UiWindow"; import * as fs from "fs"; import { AveImage, IImageCodec, ImageMetadata } from "../Image"; // You ...
<gh_stars>100-1000 /* eslint-disable no-loops/no-loops,@typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access */ /** * FSA-compliant, type-safe Redux reducers. * * Adapted and extended from https://github.com/dphilipson/typescript-fsa-reducers/blob/v1.2.2/src/index.ts * * Added `.icase()` t...
<filename>pkg/pipeline.test.ts<gh_stars>0 import { Pipeline } from "./pipeline" import { Redis } from "./redis" import { keygen, newHttpClient } from "./test-utils" import { randomUUID } from "crypto" import { describe, it, expect, afterEach } from "@jest/globals" const client = newHttpClient() const { newKey, cleanup...
import { Helpers, Random, Definitions } from "./index"; const Address = { zipCode: function(format?:string) { // if zip format is not specified, use the zip format defined for the locale if (typeof format === 'undefined') { var localeFormat = Definitions.address.postcode; if (ty...
<reponame>atChenAn/gm-spg<gh_stars>0 import fs from "fs"; import fsex from "fs-extra"; import path from "path"; import prettier from "prettier"; import { get, forIn, camelCase, upperFirst } from "lodash"; import { InterfaceDescI, ProjectDesc } from "@/types/InterfaceDesc"; import { ListAttrDesc } from "@/types/ListAttr...