text
stringlengths
3.08k
15.5k
<gh_stars>1-10 import { ISourceType, IConfigSource, IConfigContext } from '@ehosick/config-core-types'; /** * Config is setup to read from multiple sources (using addSource) and then * provide easy access to configuration from multiple sources using the get * and env methods. See documentation for details. */ expo...
/* eslint-disable sort-keys */ import { command, option, optional, string, number, } from 'cmd-ts' import { log, } from 'wechaty-puppet' import { WechatyToken } from 'wechaty-token' import getPort from 'get-port' import { VERSION, } from '../conf...
import Touchable from '@celo/react-components/components/Touchable' import colors from '@celo/react-components/styles/colors' import { fontStyles } from '@celo/react-components/styles/fonts' import variables from '@celo/react-components/styles/variables' import BigNumber from 'bignumber.js' import gql from 'graphql-tag...
<reponame>goldfinch-eng/mono import fetch from "node-fetch" import fs from "fs" import hre from "hardhat" import {Network} from "defender-base-client" import {getDeployedContract} from "./deployHelpers" import {default as DefenderProposer} from "./DefenderProposer" import {asNonNullable} from "@goldfinch-eng/utils" c...
<filename>libs/api/apipage.ts import * as E from 'fp-ts/lib/Either'; import { pipe } from 'fp-ts/lib/function'; import * as O from 'fp-ts/lib/Option'; import * as TA from 'fp-ts/lib/Task'; import * as TE from 'fp-ts/lib/TaskEither'; import { NextApiRequest, NextApiResponse } from 'next'; import { getSession } from 'nex...
<reponame>kkilictepe/NestedTypes<gh_stars>10-100 import { define, mixins, Mixable, Mixin, MixableConstructor, MixinsState, mixinRules, definitions, MixinMergeRules } from './mixins' import { omit, transform } from './tools' import { EventMap, EventsDefinition, EventSource, HandlersByEvent } from './eventsource' import ...
import * as pulumi from "@pulumi/pulumi"; import AWS from "aws-sdk"; import spawn from "cross-spawn"; import equal from "fast-deep-equal"; import { InputEnv } from "../common"; // Build web and upload to S3. This is handled as a dynamic provider because these steps are // interlinked. // Dependencies are: // 1. Auth0...
import React, { ReactElement } from 'react'; import history from '../history'; import { IMainStrings, IState } from '../model'; import { connect } from 'react-redux'; import localStrings from '../selector/localize'; import { bindActionCreators } from 'redux'; import * as actions from '../store'; import { withStyles, ...
import React, {Component} from 'react' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' import GraphOptionsCustomizeFields from 'src/dashboards/components/GraphOptionsCustomizeFields' import GraphOptionsFixFirstColumn from 'src/dashboards/components/GraphOptionsFixFirstColumn' import GraphO...
import { ASTKinds, Term, Command } from './grammar/untyped-pegjs'; import { createInfo, exhaustiveCheck, info } from './utils'; //////////////////////////////////////////////////////////////////////////////// // Data types export type term = | { readonly kind: 'variable'; readonly de_bruijn_index: numbe...
/* Copyright 2016 - 2021 The Matrix.org Foundation C.I.C. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed...
import { child$, children$, HTMLElement$, VirtualDOM } from '@youwol/flux-view' import { filter } from 'rxjs/operators' import { AppState } from '../app-state' import { ContextMenuState } from './context-menu/context-menu.view' import { ContextMenu } from '@youwol/fv-context-menu' import { DocumentNode, Explore...
import { html, css, LitElement, unsafeCSS } from 'lit' import { property } from 'lit/decorators.js' import './image-picker.js' import './image-selected.js' import './taxon-results.js' import './components/ai-reset-button.js' import './components/ai-footer.js' import { ImagePickEvent } from './ImagePicker.js' import { g...
/* * Copyright © 2019 Atomist, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
import got from 'got' import { object, boolean, array, number, string, any, assert, nullable } from 'superstruct' import ora from 'ora' import enquirer from 'enquirer' import pMap from 'p-map' import {District, SimpleSchool, DetailedSchool} from './types.js' import {quit, quitWithError} from './cli.js' const b...
import * as React from "react"; import { ICampaignsProps, Campaign, CampaignData } from "./ICampaign"; import { CampaignTable } from "./campaignTable"; import ModalStructure from "../../components/modal"; import Container from "react-bootstrap/Container"; import Tabs from "react-bootstrap/Tabs"; import Tab from "react-...
import { Pattern, Schema, Field, AssocEdge, AssocEdgeGroup, Action, } from "../schema"; import { ActionField, Type } from "../schema/schema"; function processFields(src: Field[], patternName?: string): ProcessedField[] { const ret: ProcessedField[] = []; for (const field of src) { let f: ProcessedF...
<reponame>Ashyam90/umbrella import type { DeepPath, Fn, OptPathVal, Path, Path0, Path1, Path2, Path3, Path4, Path5, Path6, Path7, Path8, Predicate2, } from "@thi.ng/api"; import { View } from "@thi.ng/atom"; import type { ReadonlyAtom } from "@thi.ng/atom"; import...
import * as React from "react"; import { useGesture } from "react-use-gesture"; import type { MapTool, SharedMapToolState } from "./map-tool"; export const usePinchWheelZoom = (mapToolState: SharedMapToolState) => { const updateZoom = ({ pinchDelta, pinchScale, origin, }: { pinchDelta: number; ...
<reponame>Codpoe/vite-plugin-react-app<gh_stars>0 import path from 'path'; import EventEmitter from 'events'; import chokidar, { FSWatcher } from 'chokidar'; import { readFile } from 'fs-extra'; import { extract, parse } from 'jest-docblock'; import { normalizePath } from 'vite'; import { slash } from '../utils'; impor...
<filename>packages/react-common-components/src/ui/common/models/app-data.model.ts export interface AppModel { type: string; price: number; trial: number; license: string; modelId: string; currency: string; commission?: number; feePayer?: string; billingPeriod?: string | 'daily' | 'weekly' | 'monthly' | 'annual...
import '../dropdown/dropdown.scss'; import React, { ChangeEvent } from 'react'; import { Dropdown as RDropdown, DropdownToggle, DropdownMenu } from 'reactstrap'; import { DropdownItem } from '../dropdown/dropdown-item'; import { ITranslatedSelectableValue, translateItem } from '../../util/translation'; import triangle...
import { calcWhatPercent, increaseNumByPercent, objectKeys, reduceNumByPercent, round } from 'e'; import { CommandStore, KlasaMessage, KlasaUser } from 'klasa'; import { Activity } from '../../lib/constants'; import killableMonsters from '../../lib/minions/data/killableMonsters'; import { minionNotBusy, requiresMinion...
<gh_stars>0 import * as path from 'path'; import * as chalk from 'chalk'; import * as inquirer from 'inquirer'; import { Options } from './interfaces/options'; import { JobHandler } from './util/job-handelr'; import { GeneralUtil } from './util/general'; import { BCMSClient, KeyMethod, BCMSTemplate } from '@becomes/cms...
import { createValue, getHorizontalStepKeys, getStepForKey, getVerticalStepKeys, isArrowKey, PointerHandler, PointerHandlerEvent, Value, ValueChangeOptions, ValueController, ViewProps, } from '@tweakpane/core'; import {CubicBezier} from '../model/cubic-bezier'; import {CubicBezierGraphView} from '../view/cu...
<reponame>litentry/litentry-node import { ApiPromise, WsProvider, Keyring } from "@polkadot/api"; import { KeyringPair } from '@polkadot/keyring/types'; import { UInt } from '@polkadot/types/codec'; import { TypeRegistry } from "@polkadot/types/create"; // Import Web3 from 'web3'; import { expect } from "chai"; import ...
import { FC } from 'react'; import Link from 'next/link'; type pokemonProps = { id: number; name: string; image_url: string; }; type Props = { pokemon: pokemonProps; }; import { useCartContext } from '../../hooks/useCartContext'; import { useSidebarContext } from '../../hooks/useSidebarContext'; con...
import localforage from "localforage"; import { TFoobarData, TFoobarContext, TFoobarPage, FOOBAR_PAGES, } from "typings/console"; export const doAsyncThings = async () => { await localforage.setItem("foobar", "/foobar/localforage"); }; export const getDataFromLocalForage = async <T extends unknown>( key: strin...
import { MwnPage } from 'mwn'; import Discord = require( 'discord.js' ); import winston = require( 'winston' ); import { mwbot, $, autoReview, getIssusData, encodeURI, turndown, htmlToIRC, setCommand } from 'src/modules/afc/util'; import { editMessage } from '../util/msg'; function htmllink( title: string, text?: str...
<reponame>serelay/c2pa-node /** * Copyright © 2021 Serelay Ltd. All rights reserved. */ import * as _ from 'lodash'; import * as util from 'util'; import { ExifImage, ExifData } from 'exif'; import JpegSegmentMarker from '../jpeg/JpegSegmentMarker'; import { Nullable } from '../helpers/Nullable'; import JpegSegm...
import { createEffect, createMemo, createRenderEffect, createSignal, mergeProps, on, } from "solid-js"; type Option = any; type SingleValue = any; type Value = SingleValue | SingleValue[]; interface CreateSelectProps { options: Option[] | ((inputValue: string) => Option[]); initialValue?: Value; m...
import format from "pg-format"; import Big from "big.js"; import { ParachainStats, ParachainStatusUpdate } from "./parachainModels"; import pool from "../common/pool"; import { Filter, filtersToWhere } from "../common/util"; import { stripHexPrefix } from "@interlay/polkabtc"; import { StatusUpdateColumns } from "../c...
import { DownloadIcon, MoonIcon, SunIcon } from '@chakra-ui/icons' import { Alert, AlertDescription, AlertIcon, AlertTitle, Box, Button, Container, Flex, Image as ChakraImage, Link, Menu, MenuButton, MenuItem, MenuList, SimpleGrid, Text, Heading, } from '@chakra-ui/react' import Image ...
<gh_stars>0 import { Post } from "../entities/Post"; import { Arg, Ctx, Field, FieldResolver, InputType, Int, Mutation, ObjectType, Query, Resolver, Root, UseMiddleware, } from "type-graphql"; import { getConnection } from "typeorm"; import { MyContext } from "src/types"; import { isAuthenticate...
'use strict' import { Position, CancellationToken } from 'vscode-languageserver-protocol' import { waitImmediate } from '../util' import { TextDocument } from 'vscode-languageserver-textdocument' const logger = require('../util/logger')('model-chars') export class Range { public start: number public end: number ...
import React from 'react'; import { Button, Col, Form, Input, notification, Row, Spin, Typography, Card, Select, } from 'antd'; import { PlusOutlined, DeleteOutlined } from '@ant-design/icons'; import mainStyles from '../../styles.css'; import { AddCategoryStateProps, CategoryUrlParams } from './int...
<reponame>swt2c/wave // // Dataflow // Mostly a port of H2O Flow's dataflow.coffee // export type Act = () => void export type Eff<T> = (t: T) => void export type Eff2<A, B> = (a: A, b: B) => void export type Eff3<A, B, C> = (a: A, b: B, c: C) => void export type Eff4<A, B, C, D> = (a: A, b: B, c: C, d: D) => void ex...
import { enumValues, PoolType } from '@src/data-enums'; import { createEffect, DurationEffect, DurationEffectTarget, Effect, Effects, EffectType, extractDurationEffectMultipliers, HealthEffect, MovementEffectMode, MovementEffectsInfo, PoolEffect, Source, SourcedEffect, SuccessTestEffect, U...
<reponame>bearda59/goldensun_html5 import {BitmapText} from "phaser-ce"; import {Djinn, djinn_status} from "../Djinn"; import {GoldenSun} from "../GoldenSun"; import {MainChar} from "../MainChar"; import {MainStatusMenu} from "../main_menus/MainStatusMenu"; import {directions, elements, reverse_directions} from "../uti...
<reponame>zrajnis/revenj<gh_stars>100-1000 import { parseBigNum, Numeric, ZERO, } from '../../util/NumberUtils/NumberUtils'; import * as StringUtils from '../../util/StringUtils/StringUtils'; import * as collection from './collection'; import * as conditional from './conditional'; import * as date from './date'; ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the Source EULA. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { PageProps } from "gatsby" import React, { ReactElement, useCallback, useReducer } from "react" import styled from "styled-components" import { H1 } from "../../components/typography/typography" import { AUTOMATION_PARTICIPANTS, ML_PARTICIPANTS, MOBILE_PARTICIPANTS, ONLINE_SAFETY_PARTICIPANTS, WEB_PAR...
import { model, Schema, Types } from 'mongoose'; import mongoosePaginate from 'mongoose-paginate-v2'; import { MODELS, STOCK_STATUS } from '../../constants/main'; import { ITaxDocument } from '../taxes/taxes.types'; import { IOptionDocument, IOptionModel } from './options.types'; const branchRelationSchema: any = new...
import {spawn} from "child_process"; import * as Discord from "discord.js"; import {ReadableStreamBuffer} from "stream-buffers"; import {compose} from "./compose"; function appendRiffHeader(buffer: Buffer, sampling = 44100) { const header = Buffer.alloc(44); const length = buffer.length; header.write("RIFF...
import { Component, Prop, State, h } from '@stencil/core'; import { Days } from '../../../contants/days'; import { Months } from '../../../contants/months'; import { Calendar } from '../../../contants/calendar'; import moment from 'moment'; const weekDay = { Su: '日', Mo: '一', Tu: '二', We: '三', Th: '四', Fr...
/* eslint-disable react-hooks/exhaustive-deps */ import { MyForm, SubmitButton } from '../../components/forms/components' import { MyTextField, MyIconButton, MyFullImage, Loading, } from '../../components/global' import NavBar from '../../components/navbar' import { ColumnGroup, CommentBox, DetailsBox, ...
/** * what happens - Exchange cancels orders that lie outside execution range * * 1. SLM order can be partially filled before it gets cancelled * 2. Entire order can be cancelled * * Action plan: * * 1. Have a reference to the order id created by zerodha * 2. Every 5 seconds * 2. SLM order is in state `CANCE...
<filename>src/lexer.ts import { Context } from "./ctx"; import { LoxError } from "./error"; export namespace Token { export const enum Type { // Single-character tokens. LEFT_PAREN, RIGHT_PAREN, LEFT_BRACE, RIGHT_BRACE, COMMA, DOT, MINUS, PLUS, SEMICOLON, SLASH, STAR, PERCENT, ...
import { PointerEvent, useMemo, useState, useCallback } from 'react' import useRaf from '@rooks/use-raf' import { last } from 'lodash' import { PointerEvents } from 'morpheus/hotspot/eventInterface' interface Position { top: number left: number time: number vertical?: number horizontal?: number } const DEG_...
import { merge } from 'lodash-es'; import type { App, Plugin } from 'vue'; import 'focus-visible'; import { setConfig } from './config'; import { en as localeEn, ru as localeRu, zh as localeZh } from './constants/locales'; import { setMessages, setI18n } from './locale'; import { QBreadcrumbs } from './QBreadcr...
<gh_stars>0 // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import * as fs from 'fs'; import * as path from 'path'; import { Disposable, EventEmitter } from '../../common/events'; import * as nls from 'vscode-nls'; import CdpConnection from '../../cdp/connection'; import findBrowser from './...
import * as React from 'react'; import { Button, Icon, OverlayTrigger, Popover } from 'patternfly-react'; import { style } from 'typestyle'; import isEqual from 'lodash/fp/isEqual'; import { LabelDisplayName } from 'k-charted-react'; import history, { URLParam } from '../../app/History'; import { AllLabelsValues } fro...
import { Tags } from 'opentracing' import apm from 'elastic-apm-node' import OpenTracer from 'elastic-apm-node-opentracing' import Span from './Span' import { Response, Request, NextFunction } from 'express' import { LabelValue, Labels } from './Span' export class Tracer { serviceName: string | undefined secretT...
<reponame>gooseNjuice/matrix-react-sdk<filename>src/IConfigOptions.ts /* Copyright 2016 OpenMarket Ltd Copyright 2019 - 2022 The Matrix.org Foundation C.I.C. 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 Lic...
import Button from '@salesforce/design-system-react/components/button'; import Card from '@salesforce/design-system-react/components/card'; import Modal from '@salesforce/design-system-react/components/modal'; import RadioGroup from '@salesforce/design-system-react/components/radio-group'; import Radio from '@salesforc...
import _ from "lodash"; import { isViewportConditionMatch as isViewportConditionMatch_, generateViewportSizeTypeInfoList, generateViewportSizeTypeInfoRefs, generateViewportSizeType, getSizeTypeInfo, } from "./viewport.util"; import { ComparisonOperation, ViewportMatchConditions, ViewportSizeType, ViewportSizeTypeI...
import { luhnAlgorithm } from "../luhnAlgorithm"; import { parseDate } from "./parseDate"; import { PersonalNumberOptions, PersonalNumberReturn, BirthPlace, PersonalNumberType, GenderType } from "../types"; function parse(input: string | number, options: PersonalNumberOptions): PersonalNumberReturn { // checks th...
import { usePrice } from '@commerce/product' import type { Product } from '@commerce/types' import { Breadcrumb } from '@components/common' import { SizeGuide } from '@components/icons' import AdsSignupView from '@components/others/AdsSignup' import { ProductSlider2, Swatch } from '@components/product' import { Accordi...
import React, { useState, useEffect, useRef, useCallback } from "react" import styled from "styled-components" import { useLocation, useHistory } from "react-router-dom" import { renderToString } from "react-dom/server" import { RouteComponentProps } from "react-router" import Bindery, { Controls } from "@broskoski/bin...
// Copyright 2019 <NAME>. All rights reserved. // Use of this source code is governed by the MIT license, a copy of which can // be found in the LICENSE file. import moment from 'moment'; import { ILoginRequest, ILoginResponse, ILoginStatus } from '../api/ILogin'; import { Configuration } from './Configuration'; imp...
/* * Created on Wed Feb 03 2021 * * Copyright (c) storycraft. Licensed under the MIT Licence. */ import { Long } from 'bson'; import { sha1 } from 'hash-wasm'; import { TalkChannel } from '.'; import { ChannelDataUpdater, ChannelSession, NormalChannelSession, UpdatableChannelDataStore } from '../../channel'; impor...
<reponame>xinsnake/azure-apim-sdk-node import { PolicyEntity, GenericEntity } from './entities-abstract' import { Collection, Parameter, HttpRequest, HttpResponse } from './representation' export class Api extends PolicyEntity { public name?: string public description?: string public serviceUrl?: string ...
import twilio, { Twilio } from "twilio"; import * as ngrok from "ngrok"; import express from "express"; import * as http from "http"; import * as dotenv from "dotenv"; import * as stringSimilarity from "string-similarity"; const port = 8001; const VoiceResponse = twilio.twiml.VoiceResponse; export interface TesterOp...
import React, { FC, useEffect, useState } from 'react'; import styles from './PickUpTimes.module.sass'; import { Typography } from '@material-ui/core'; import classNames from 'classnames'; import Loading from '../../../common/Loading'; import TextField from '../../../common/TextField'; import CheckBox from '../../../co...
import React, { useEffect, useState, useContext, Children } from 'react'; import { Layout, Modal, Form, Input, Icon, Checkbox, Button } from 'antd'; import { FaFacebookF, FaGoogle } from 'react-icons/fa'; import Head from './head'; // import {CustomNProgress} from 'components'; import { compose } from 'recompose'; i...
<gh_stars>100-1000 import App from "../app"; import {gql, withFilter} from "apollo-server-express"; import {pubsub} from "../helpers/subscriptionManager"; import taskDefinitions from "../tasks"; import {ValueDef} from "../classes/task"; import uuid from "uuid"; const mutationHelper = require("../helpers/mutationHelper"...
import Vue from 'vue'; import axios from 'axios'; import sanitizeHTML from 'sanitize-html'; import { OpenParams } from 'camaleao-design/components/CaModalPG'; import { particleEffect, openModal, openDialog, openView, toast, drillDown, loading, placeholderImg, } from '@/common/util'; import Setting from ...
<reponame>ljx0517/cocoscreator-native-devtools import { app, BrowserWindow, session } from 'electron' import path from 'path' import { IPCKey } from '../common/Constants' import http from 'http' const {ipcMain: ipc} = require('electron-better-ipc'); const portfinder = require('portfinder'); const CDP = require('../comm...
import { Event, ipcRenderer } from 'electron'; import React, { Component, ReactNode } from 'react'; import './parameters.css'; import { BoundingBoxBounds, ThemeProps } from '../../../types/componentStyle'; import { missionName } from '../../../common/missions/VTOLSearch'; import { VehicleObject } from '../../../typ...
import { BaseAPI } from './BaseAPI'; import { Msg, Tx, Coins, TxInfo, Numeric, Fee, PublicKey } from '../../../core'; import { LCDClient } from '../LCDClient'; import { TxLog } from '../../../core'; import { APIParams, Pagination, PaginationOptions } from '../APIRequester'; interface Block { height: number; txh...
/** * @license * Copyright 2019 The Neuroglancer 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
import * as Mnemonic from "bitcore-mnemonic"; import { range } from "lodash"; import * as React from "react"; import Select from "react-virtualized-select"; import { Col, Row } from "reactstrap"; import { Button } from "../../shared/Buttons"; import { WarningAlert } from "../../shared/WarningAlert"; import * as arrow...
import { Apps as AppsIcon, Web as WebIcon, Cloud as CloudIcon, FacebookMessenger as FacebookMessengerIcon, Email as EmailIcon, MapMarker as MapMarkerIcon, Github as GithubBoxIcon, Gitlab as GitlabIcon, Facebook as FacebookIcon, Linkedin as LinkedinIcon, Twitter as TwitterIcon...
import React, { useEffect, useState } from 'react'; import './Transactions.scss'; import { IonButton, IonButtons, IonCol, IonFab, IonFabButton, IonFabList, IonGrid, IonHeader, IonIcon, IonMenuButton, IonPage, IonRow, IonTitle, IonToolbar } from '@ionic/react'; import { connect } from '../../...
import {EventAggregator} from "aurelia-event-aggregator"; import {inject} from "aurelia-framework"; import {I18N} from "aurelia-i18n"; import {trace} from "./_/common/functions"; import * as ga from "./_/common/analytics/ga"; import constants from "./_/data/constants"; import {Router, RedirectToRoute} from "aurelia-rou...
import { access, constants, readdir, readdirSync } from "node:fs" import { GuildMember, MessageEmbed } from "discord.js" import { colors, ids } from "../../config.json" import { db, DbUser } from "../../lib/dbclient" import { generateTip, MongoLanguage } from "../../lib/util" import type { Command, GetStringFunction...
import DiscordModules from "@modules/discord"; import Storage from "@modules/storage"; import DiscordIcon from "@ui/components/discordicon"; import AddonCard from "./card"; import "./panel.scss"; const {Path} = HolyAPI; export type SearchOptions = { description: boolean; author: boolean; name: boolean; };...
import { CanvasRenderingContext2D, createCanvas, loadImage } from "canvas"; import fs from "fs"; import mylas from "mylas"; import { join } from "path"; import { pipeline } from "stream/promises"; import { DataStore } from "hagcp-utils"; export async function toCanvasColored(dataStore: DataStore, dataStore2: DataStore...
<reponame>KishDelish/hkrhackathon_backend import express from "express"; const router = express.Router(); import bcrypt from 'bcrypt'; import auth from '../middleware/auth'; import reset from '../middleware/resetPassword' import asyncMiddleware from '../middleware/async' import { validateUserCreation, validate...
import React, {useState, useEffect} from "react"; import {loadModules} from "esri-loader"; import {Scene} from "@esri/react-arcgis"; import {conservationState} from "../../store"; import {useRecoilValue} from "recoil"; import * as globalVars from "../../globalVars"; interface globeState { status: string; map: ...
import { BlockStatement, BreakStatement, ContinueStatement, Directive, ExpressionStatement, ForOfStatement, ForStatement, IfStatement, ModuleDeclaration, ReturnStatement, Statement, SwitchCase, SwitchStatement, VariableDeclaration, } from 'estree'; import { FExpre...
import gsap from 'gsap'; import React, { useCallback, useEffect, VFC } from 'react'; import * as THREE from 'three'; import { Plane } from '@react-three/drei'; import { Size, useFrame, useThree } from '@react-three/fiber'; import { blendmode } from '../../glsl/blendmode'; import { transitionState } from '../../modules/...
import React, { useState } from 'react'; import { StyleSheet, Text, View, TextInput, TouchableOpacity, Alert, AsyncStorage, ImageBackground, Image, Picker, CheckBox, SwitchIOS, Platform, Switch } from 'react-native'; //import { createBottomTabNavigator } from '@react-navigation/bottom-tabs'; import CustomText from '../...
import { Collection, ObjectId } from "mongodb"; import { ascertainAncestors, Entity } from "./Entity.js"; import { CheckPermContext } from "./index.js"; import { createExtendable, Datum, globalDefaultProivder } from "./MongoDBProvider.js"; import { ensureElementsUnique, ensureStringArray, isSubsetOf } from "./utils/Cor...
import { BufferAttribute } from "three/src/core/BufferAttribute"; import { BufferGeometry } from "three/src/core/BufferGeometry"; import { BoxGeometry } from "three/src/geometries/BoxGeometry"; import { FrontSide } from "three/src/constants"; import { Group } from "three/src/objects/Group"; import { MeshBasicMaterial }...
<reponame>pocesar/DefinitelyTyped /// <reference types="jquery"/> // Using the global setup option // ============================= $.dynatableSetup({ features: { pushState: false }, dataset: { perPageDefault: 5, perPageOptions: [2, 5, 10] } }); // Without any settings (using all defaults) // =======================...
import React, {FC} from 'react' import {KTSVG, toAbsoluteUrl} from '../../../../../_metronic/helpers' import {Field, ErrorMessage} from 'formik' const Step4: FC = () => { return ( <div className='w-100'> <div className='pb-10 pb-lg-15'> <h2 className='fw-bolder text-dark'>Billing Details</h...
import { addMockFunctionsToSchema, ApolloServer, gql, IMocks } from "apollo-server"; import plugin from 'apollo-server-plugin-operation-registry'; import { buildFederatedSchema } from "@apollo/federation"; import { ApolloServerPluginUsageReportingDisabled } from 'apollo-server-core'; import { StateManager } from "./st...
// ====================================================================== // Scrambled Letters and Hash // Advent of Code 2016 Day 21 -- <NAME> -- https://adventofcode.com // // Typescript implementation by Dr. <NAME> // ====================================================================== // =====================...
/******************************************************************************** * Copyright (c) 2020 SAP SE or an SAP affiliate company and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse....
<filename>src/services/fcZip.ts import * as compress from 'compressing'; import * as path from 'path'; import * as fs from 'fs-extra'; import * as vscode from 'vscode'; import { parseString } from 'xml2js'; import { toArray } from '../util'; import { IMetadataObject } from '../forceCode'; import { getToolingTypeMetadat...
var spriteMaker: SpriteMaker; class SpriteMaker { private ProcessingImage: boolean = false; public Images: string[] = []; private spriteWidth: number; private spriteHeight: number; private totalImageSelected: number = 0; private imageProcessedCount: number = 0; constructor() { ...
import { writeFileSync } from 'fs'; import mongoose from 'mongoose'; import { IntInternal } from '../interfaces/shared'; import { utils } from './utils'; import { Credentials } from './cfenv'; /* mongo states 0: disconnected 1: connected 2: connecting 3: disconnecting */ export { mongoose }; interface ICredentials {...
<reponame>ravinsinghd/momentum-ui /** * Copyright (c) Cisco Systems, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import styles from "@/components/tooltip/scss/module.scss"; import { Tooltip, TooltipEve...
import express, {Request} from "express"; import {SearchResult} from "../../../models/api/SearchResult"; import {CourseUserToUser} from "../../../models/database/CourseUser"; import {User} from "../../../models/database/User"; import {PermissionEnum} from "../../../models/enums/PermissionEnum"; import {Sorting} from "...
import { QuestionCircleOutlined } from "@ant-design/icons"; import { Button, Checkbox, Form, Input, Select, Tooltip } from "antd"; import { FormInstance } from "antd/lib/form"; import * as React from "react"; import { CountryCodesAPI } from "../api/v1/CountryCodesAPI"; import { LanguageCodesAPI } from "../api/v1/Langua...
// Copyright (c) 2021 <NAME> // // This software is released under the MIT License. // https://opensource.org/licenses/MIT /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import CookiePolicy from '../interfaces/CookiePolicy'; import getPropertyAccessors from '../functions/getPropertyAccessors';...
<gh_stars>1-10 /** * @license * Copyright (C) 2017 "IoT.bzh" * Author <NAME> <<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 * * Unl...
import styled from "styled-components" import { rem, rgba } from "polished" import { slideUpPopover } from "../../core/GlobalStyles" import Button from "../../components/Button" export const Wrapper = styled.div` position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, 0); box-shadow: 0 3px 12...
<filename>server/src/stripe.ts import * as dotenv from 'dotenv'; import Stripe from 'stripe'; import * as uniqid from 'uniqid'; import { ProductAttributes } from 'models/product'; dotenv.config(); type CustomerReturn = Stripe.Customer | Stripe.DeletedCustomer; type ProductReturn = string | Stripe.Product | Stripe.Del...