text stringlengths 3.08k 15.5k |
|---|
<filename>desktop/flipper-server-core/src/devices/ios/iOSDeviceManager.tsx
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import {ChildProcess} from 'child_proce... |
<reponame>hki-237/fluentui
import * as React from 'react';
import { useRefEffect, RefCallback } from '@uifabric/react-hooks';
import { getWindow } from '../../Utilities';
import { observeResize } from './observeResize';
/**
* Callback to notify the user that the items in the overflow have changed. This should e... |
import React, {
Fragment,
useContext,
useEffect,
useState,
useCallback,
} from "react";
import ThumbDownIcon from "@material-ui/icons/ThumbDown";
import HighlightIcon from "@material-ui/icons/Highlight";
import HighlightOutlinedIcon from "@material-ui/icons/HighlightOutlined";
import { makeStyles } from "@mat... |
import { AssetBuyer, BigNumber } from '@0x/asset-buyer';
import { assetDataUtils } from '@0x/order-utils';
import { providerUtils } from '@0x/utils';
import { SupportedProvider, ZeroExProvider } from 'ethereum-types';
import * as _ from 'lodash';
import * as React from 'react';
import * as ReactDOM from 'react-dom';
i... |
/*
* Copyright (c) 2021-2022 R3BL 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 ... |
<reponame>tenoritaiga/unfetter-ui
import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
import { Store } from '@ngrx/store';
import { Dictionary } from '../../../../models/json/dictionary';
import { AppState } from '../../../../root-store/app.reducers';
import { HeatmapComponent } from '../../h... |
import { KeyValue } from '../types';
import { Basecoat, IDisablable } from '../common';
import { Cell } from '../model/cell';
import { Model } from '../model/model';
import { Graph } from './graph';
export declare class HistoryManager extends Basecoat<HistoryManager.EventArgs> implements IDisablable {
readonly mode... |
import React, { useState, useEffect } from 'react';
//import NumberFormat from 'react-number-format';
import format from 'date-fns/format';
import { es } from 'date-fns/locale';
import { apiClient } from '../../../services/index'
import { SectionTitle } from '../../molecules/section-title'
import {
ContainerBanner,
... |
import * as React from 'react'
import * as Styles from '../../styles'
import * as Kb from '../../common-adapters'
import {teamWaitingKey} from '../../constants/teams'
import * as Types from '../../constants/types/teams'
import {useTeamsSubscribe} from '../../teams/subscriber'
export type RowProps = {
canShowcase: bo... |
<gh_stars>0
import { MutationMode, OnSuccess, OnFailure } from '../types';
import { DeclarativeSideEffect } from './useDeclarativeSideEffects';
/**
* Get a callback to fetch the data provider through Redux, usually for mutations.
*
* The request starts when the callback is called.
*
* useMutation() parameters can ... |
/* eslint-disable */
import React, {useEffect, useState} from 'react';
import {Button, Col, Container, Row, Table} from 'react-bootstrap';
import {Link, NavLink, Redirect} from 'react-router-dom';
import {useDispatch, useSelector} from 'react-redux';
import NavBar from '../../components/NavBar/NavBar';
import styles fr... |
/*
* Copyright 2019 ThoughtWorks, 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 agr... |
<reponame>forest-yu/web-screen-shot
import { ComponentInternalInstance, ref } from "vue";
import { positionInfoType, toolIcoType } from "@/module/type/ComponentType";
// 截图容器宽高
const screenShortWidth = ref<number>(0);
const screenShortHeight = ref<number>(0);
// 裁剪框拖拽状态
let dragging = false;
// 截图工具栏展示状态与位置
const too... |
import { ChartItemType } from "../../ModelMixins/ChartableMixin";
import CsvCatalogItem from "../../Models/Catalog/CatalogItems/CsvCatalogItem";
import CommonStrata from "../../Models/Definition/CommonStrata";
import { BaseModel } from "../../Models/Definition/Model";
import { GlyphStyle } from "./Chart/Glyphs";
import... |
<reponame>jaredjj3/stringsync<filename>web/src/graphql/graphqlTypes.ts
export type Maybe<T> = T | null;
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K exten... |
/*!
* V4Fire Core
* https://github.com/V4Fire/Core
*
* Released under the MIT license
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/
import { cache, mimeTypes } from 'core/request/const';
import { CreateRequestOptions, ResponseType } from 'core/request/interface';
/**
* Takes the cache key for data an... |
<reponame>adinstruments/LightningDeviceSDK<filename>examples/devices/Teensy_4_NoSync/Teensy_4_NoSync.ts
/**
* Notes:
* - Quark is Lightning's C++ sampling engine.
* - In order for this file to be registered by Lightning, it must be located
* under ~/Documents/LabChart Lightning/Plugins/devices
* - Technical term... |
<filename>nodejs/awsx/ecr/lifecyclePolicy.ts
// Copyright 2016-2018, Pulumi Corporation.
//
// 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/LIC... |
<filename>src/main.ts<gh_stars>1-10
import * as Splashscreen from '@trodi/electron-splashscreen'
import {
BrowserWindow,
Menu,
app,
clipboard,
dialog,
ipcMain,
session,
shell
} from 'electron'
import Store from 'electron-store'
import { Rectangle } from 'electron/main'
import { existsSync, mkdirSync, wr... |
import React from 'react';
import styled from '@emotion/styled';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { IconPack } from "@fortawesome/fontawesome-svg-core";
import { faGithub, fab } from '@fortawesome/free-brands-svg-icons';
import { fas } from "@fortawesome/free-solid-svg-icons"
im... |
import range from "lodash/range"
import cloneDeep from "lodash/cloneDeep"
import sample from "lodash/sample"
import { createState } from "@state-designer/core"
import * as Tetris from "./types"
import * as Static from "./static"
const initialData: Tetris.Data = {
matrix: range(40).map(() => range(10).map(() => 0)),... |
<gh_stars>0
import { promisify } from 'util';
import fs, { Stats } from 'fs';
import path from 'path';
import chai from 'chai';
import chalk from 'chalk';
import Mocha, { Context, MochaOptions } from 'mocha';
import { Key } from 'selenium-webdriver';
import { Config, Images, Options, BrowserConfig, TestMessage, isImage... |
<reponame>vaib-amz/aws-toolkit-vscode
/*!
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
import { _Blob } from 'aws-sdk/clients/lambda'
import _ = require('lodash')
import * as vscode from 'vscode'
import xml2js = require('xml2js')
import { LambdaC... |
import { BigNumber } from 'bignumber.js'
import { ethers } from 'ethers'
import { Tx } from '@shapeshiftoss/blockbook'
import { caip2, caip19 } from '@shapeshiftoss/caip'
import { ChainTypes, ContractTypes } from '@shapeshiftoss/types'
import { Tx as ParseTx, TxSpecific as ParseTxSpecific, Status, Token, TransferType, ... |
<reponame>frankhommers/pev2
import * as _ from 'lodash';
import * as moment from 'moment';
import momentDurationFormatSetup from 'moment-duration-format';
momentDurationFormatSetup(moment);
import { EstimateDirection, NodeProp, nodePropTypes, PropType } from '@/enums';
import hljs from 'highlight.js/lib/core';
import *... |
<gh_stars>0
/**
* Code Manipulation - Create `forEachStructureKind`
* -------------------------------------------------
* This modifies the forEachStructureKind.ts file that
* is used for iterating over a structure's structures.
* -------------------------------------------------
*/
import { PropertySignature, So... |
<reponame>MoustachioMario/solaris
import Repository from "./repository";
import { Game } from "./types/Game";
import { Player, PlayerReputation } from "./types/Player";
import DiplomacyService from "./diplomacy";
import PlayerStatisticsService from "./playerStatistics";
const EventEmitter = require('events');
const M... |
<filename>src/lib/pdf/pdfGeneratePV.ts<gh_stars>0
import type { CategorieDossier, Enfant, TypeEmploi } from "@prisma/client";
import { jsPDF } from "jspdf";
import type { RowInput } from "jspdf-autotable";
import autoTable from "jspdf-autotable";
import _ from "lodash";
import logoPrefet from "src/images/logo_prefet.pn... |
<reponame>HofmannCh/ZugUmZug
import { Router, Request, Response } from "express";
import db from "@lib/database";
import ZuzError from "@/interfaces/ZuzError";
import zuzJson, { zuzError } from "./responseHelper";
export enum CrudRequests {
GetAll = 1,
GetById = 2,
Destroy = 4,
CreateOrUpdate = 8
}
ex... |
import {
Button,
Heading,
IssueIcon,
LightningIcon,
Pane,
SelectField,
ShareIcon,
SideSheet,
Text,
Tooltip,
minorScale,
} from 'evergreen-ui';
import { useCallback, useMemo, useState } from 'react';
import { useLocalStorage } from 'react-use-storage';
import { RESULT_CLASSIFIED, RESULT_REAL_SALE ... |
<reponame>Shockch4rge/DefinitelyTyped<gh_stars>1-10
// Type definitions for react-sortable-tree 0.3
// Project: https://frontend-collective.github.io/react-sortable-tree
// Definitions by: <NAME> <https://github.com/wouterhardeman>
// <NAME> <https://github.com/jzoric>
// <NAME> <https:/... |
<gh_stars>100-1000
import os = require("os");
import Contracts = require("../Declarations/Contracts")
import Constants = require("../Declarations/Constants");
import Util = require("./Util")
import Config = require("./Config");
import Context = require("./Context");
import Logging = require("./Logging");
var StreamId ... |
<reponame>travisnguyen20/vendure
import { DefaultLogger, LogLevel, mergeConfig } from '@vendure/core';
import { createTestEnvironment } from '@vendure/testing';
import fs from 'fs-extra';
import gql from 'graphql-tag';
import fetch from 'node-fetch';
import path from 'path';
import { initialData } from '../../../e2e-c... |
import p5, { Image } from 'p5';
import ProcessingSketch from '../ProcessingSketch';
import { Matrix } from '../../utils/Matrix';
const NUM_OF_THRESHOLD_MATRICES = 30;
// const PALETTE = ['#ff55ff', '#55ffff', '#ffffff'];
// function pad(d) {
// // return d < 10 ? '00' + d.toString() : d < 100 ? '0' + d.toString()... |
<gh_stars>0
import { Router } from "express";
import fetch from "isomorphic-fetch";
import ApiClient from "magda-typescript-common/src/authorization-api/ApiClient";
import addTrailingSlash from "magda-typescript-common/src/addTrailingSlash";
import Authenticator from "./Authenticator";
import createAuthPluginRouter, {
... |
import fs from "fs"
import { builtinModules } from "module"
import path from "path"
import ts from "typescript"
import { createLogger, LogFunc, LogLevel } from "./logger"
export interface Mapping {
pattern: string
prefix: string
suffix: string
wildcard: boolean
targets: string[]
}
export interface TsConfigPayloa... |
<filename>src/constants/index.ts
import { CASE_PROCEDURE_TYPE, CASE_TYPE, IDocType, PARTY_TYPE } from '@/types/business';
import { GetObjectValueType } from '@/types/utils';
// 合同状态枚举
export const CONTRACT_STATUS = {
FAIL: 0,
AUDIT_PENDING: 1,
EXEC_PENDING: 2,
EXECUTING: 3,
FINISH: 4,
};
export const CONTRA... |
import chalk from 'chalk';
import { gitInfo, getPkgName, getRswPackage } from './utils';
export const rswHot = `
if (import.meta.hot) {
import.meta.hot.on('rsw-error', (data) => {
createRswErrorOverlay(data);
throw \`\n🦀\${data.plugin} ~> \${data.id}\n\n\${data.console}\`
})
import.meta.hot.on('rsw-erro... |
import * as React from 'react';
import IBaseRefinerTemplateProps from '../IBaseRefinerTemplateProps';
import IBaseRefinerTemplateState from '../IBaseRefinerTemplateState';
import { IRefinementValue, RefinementOperator } from "../../../../../models/ISearchResult";
import * as update from 'immutability-helper';
import { ... |
<gh_stars>1-10
import $ from 'jquery'
// @ts-nocheck
import _ from 'lodash'
import $dom from '../dom'
import $SnapshotsCss from './snapshots_css'
const HIGHLIGHT_ATTR = 'data-cypress-el'
export default {
HIGHLIGHT_ATTR,
create: ($$, state) => {
const snapshotsCss = $SnapshotsCss.create($$, state)
const sn... |
<gh_stars>0
/*
* MIT License
*
* Copyright (c) 2020-present Cloudogu GmbH and Contributors
*
* 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 limi... |
import * as ErrorHandler from "../ErrorHandler";
import * as Events from "../Events";
import EventEmitter from "../EventEmitter";
import * as Strings from "strings";
import * as Utils from "../Utils";
import * as GitFtp from "./GitFtp";
var _ = brackets.getModule("thirdparty/lodash"),
DefaultDialogs ... |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... |
/*
* Copyright 2016-2020 The NATS 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 applicable law or agreed ... |
<reponame>piraces/unsplashy
export interface Facets {
}
export interface MediaEmbed {
content: string;
width: number;
scrolling: boolean;
height: number;
}
export interface Oembed {
provider_url: string;
title: string;
html: string;
thumbnail_width: number;
height: number;
widt... |
/* eslint-disable @typescript-eslint/naming-convention */
/* eslint-disable @typescript-eslint/no-empty-function */
import { Project } from "./Project";
import { SchemaComposer } from "./SchemaComposer";
import { step, withSpinner, outputManifest } from "./helpers";
import { bindSchema, writeDirectory } from "@web3ap... |
<filename>src/lib/src/resource-view-registry.ts
import { Inject, Injectable, InjectionToken, Optional } from '@angular/core';
import { ViewDef } from './view-definition';
import { SortedArray } from './utils/sorted-array';
import { wildcardToRegex } from './utils/wildcard-to-regex';
import { simpleTypeQualityEvaluator,... |
// Copyright (c) 2020 Jozty. All rights reserved. MIT license.
import curryN from './utils/curry_n.ts'
import type { Curry2, Obj } from './utils/types.ts'
import { isFunction } from './utils/is.ts'
import { typ } from './typ.ts'
import { getFunctionName } from './utils/get.ts'
import { nth } from './nth.ts'
import { c... |
/*
* Copyright © 2020 Lisk Foundation
*
* See the LICENSE file at the top-level directory of this distribution
* for licensing information.
*
* Unless otherwise agreed in a custom licensing agreement with the Lisk Foundation,
* no part of this software, including this file, may be copied, modified,
* propagated... |
import { CharSet } from "../char-set";
import { Char, ReadonlyWord } from "../char-types";
import { FABuilder, FAIterator } from "../fa-types";
import { cachedFunc, traverse } from "../util";
import { ReadonlyWordSet } from "../word-set";
/**
* This eagerly creates an FA that accepts exactly all the given words.
*
... |
import React from "react";
import { Meta, Story } from "@storybook/react";
import { Graph } from "../../src";
import { Args, BaseStory } from "@storybook/addons";
import { StoryFnReactReturnType } from "@storybook/react/dist/client/preview/types";
import { IGraphProps } from "../../src/components/graph/Graph.types";
c... |
import { MathUtils, Spherical, Vector3, EventDispatcher, Camera } from 'three'
class FirstPersonControls extends EventDispatcher {
public object: Camera
public domElement: HTMLElement | Document
public enabled = true
public movementSpeed = 1.0
public lookSpeed = 0.005
public lookVertical = true
public... |
<filename>src/material-experimental/mdc-select/select.ts
/**
* @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 {
AfterViewInit,
ChangeDetectionStrategy,
Compo... |
import { NodeConfig, EdgeConfig } from '@antv/g6/lib/types';
const COLORS = [
"#4d64b5",
"#63b7af",
"#ecce6d",
"#27496d",
"#00a8cc",
"#546b66",
"#ee8572",
"#e9f3b6",
"#d98e37",
"#c06c9f",
"#bbdeb6",
"#65587f",
];
export interface PackageGraphNode {
id: string;
children: PackageGraphNode[];... |
import { Injectable, OnModuleInit, Logger } from '@nestjs/common';
import { TwitchStream } from '../models/twitch-stream';
import { Cron, CronExpression } from '@nestjs/schedule';
import { Environment } from '@/environment/environment';
import { map, distinctUntilChanged } from 'rxjs/operators';
import { BehaviorSubjec... |
import React, { Component, Fragment, ReactElement } from 'react';
import classNames from 'classnames';
import {
ChartShallowDataShape,
ChartInternalShallowDataShape,
buildShallowChartData,
ChartDataTypes
} from '../common/data';
import {
isAxisVisible,
LinearAxisProps,
LinearXAxis,
LinearYAxis,
Linear... |
import {
Uploader,
UploaderOptions,
UploadOptions,
UploadResponse,
FileListResponse,
DeleteFileResponse,
CreateDirectoryResponse
} from 'aragorn-types';
import qiniu from 'qiniu';
import { ReadStream, createReadStream } from 'fs';
import { options as defaultOptions } from './options';
import { Readable } ... |
<reponame>steroids/react
import _isPlainObject from 'lodash-es/isPlainObject';
import _isArray from 'lodash-es/isArray';
import _isEqual from 'lodash-es/isEqual';
import _get from 'lodash-es/get';
import {useCallback, useContext, useEffect, useMemo, useReducer, useRef, useState} from 'react';
import {useEffectOnce, use... |
import React from 'react';
import Style from '@localTypes/style';
import { LayoutableProps, ClickableProps } from '../types';
import View from './view';
import { prefetch, getSize } from '../modules/image-loader-module';
import { Device } from '../native';
import { colorParse, colorArrayParse } from '../color';
import ... |
// @ts-ignore: wait for core-components to expose types
import CoreToggle from "@nrk/core-toggle/jsx";
import React, { FocusEvent, useRef, useState } from "react";
import { nanoid } from "nanoid";
import { Label, LabelVariant, SupportLabel, ValuePair, getValuePair, DataTestAutoId } from "@fremtind/jkl-core";
import { u... |
import Vue from 'vue'
import {namespace, State} from 'vuex-class'
import {IBlock, IFlow, ILanguage, SupportedContentType, SupportedMode} from '@floip/flow-runner'
import {cloneDeep, get, isEmpty, map} from 'lodash'
import Component from 'vue-class-component'
import caseBlockStore, {BLOCK_TYPE as CASE_BLOCK_TYPE} from '... |
<filename>src/vs/editor/contrib/folding/browser/hiddenRangeModel.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license informatio... |
<filename>clients/itwin/src/Token.ts
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*---------------------------------... |
import { Request, Response } from "express";
import * as i18n from "i18n";
import { getRepository } from "typeorm";
import { Setting } from "../entity/Setting";
import { User } from "../entity/User";
import { Device } from "../entity/Device";
function stringToBool(s: string): boolean {
if (s == "true") {
r... |
/**
* @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 * as core from '../../core';
import {DEFAULT_INTERPOLATION_CONFIG} from '../../ml_parser/interpolation_config';... |
<gh_stars>0
import { useCallback, useEffect, useMemo } from "react"
import useGapi from "@/hooks/useGapi"
import { Requestable, RequestStatus } from "@/types"
import { PropertySummary, Stream, StreamType } from "@/types/ga4/StreamPicker"
import usePaginatedCallback from "@/hooks/usePaginatedCallback"
import useCached ... |
import { Component, Inject, OnInit } from '@angular/core';
import { WINDOW } from '../../services/window.service';
import { IconShapeSources } from '@clr/icons/interfaces/icon-interfaces';
import * as jsBeautify from 'js-beautify';
interface Window {
ClarityIcons: any;
}
@Component({
templateUrl: './icons.compone... |
<reponame>EZLinks/ez-web-toolkit
/**
* @namespace toolkit.components
*/
import * as _ from 'lodash';
import { BaseComponent } from '../../baseClasses/baseComponent';
import { UiGridRequest } from '../../models/uiGrid/uiGridRequest';
import { INotificationService } from '../../services/notificationService';
import ... |
import { myClient } from '../../index';
import { StreamDispatcher, Collection, VoiceConnection, Message} from 'discord.js';
import * as ytdl from 'ytdl-core' ;
import * as ytsr from 'ytsr';
type RepeatSong =
| 'NO_REPEAT'
| 'REPEAT_QUEUE'
| 'REPEAT_NOW';
interface Song {
title: string;
link: string;
auth... |
/* eslint-disable react-native/no-inline-styles */
import React, { memo, useState, useEffect } from 'react';
import {
View,
TouchableOpacity,
Image,
Platform,
TextInput,
} from 'react-native';
import {
Actionsheet,
Text,
useDisclose,
ScrollView,
KeyboardAvoidingView,
} from 'native-base';
import typ... |
import { h } from 'preact';
import { DropDown, DropDownItem } from '@components/DropDown';
import Icon from '@components/Icon';
import Input from '@components/Input';
import "@styles/ColorPicker.scss";
import { isHexColorValid, getColorFromHex, rgbToHsv, hsvToRgb, getHexFromColor } from '@utils/color';
import { useRef,... |
import * as React from 'react';
import {withKnobs, select, text} from '@storybook/addon-knobs';
import {DefaultTheme} from '@twilio-paste/theme';
import type {ThemeShape} from '@twilio-paste/theme';
import {CustomizationProvider} from '@twilio-paste/customization';
import {Separator} from '@twilio-paste/separator';
imp... |
import logger, { setLogger } from "../utils/logger"
import { detectHost } from "../utils/detect-host"
import * as routes from "./routes"
import renderPage from "./pages"
import { init } from "./init"
import { assertConfig } from "./lib/assert"
import { SessionStore } from "./lib/cookie"
import type { NextAuthAction, N... |
<reponame>johnuphoff/math<gh_stars>1-10
export function average(...args):number {
const first = args[0];
const array = typeof first === "number" ? args : first;
let total = 0;
for (let float of array) {
total += float;
}
return total / array.length;
}
export function ceil(num:number, increment:number =... |
import { Component, OnInit , ViewChild } from '@angular/core';
import {UserService} from 'src/app/service/adminService/user.service';
import { FormGroup, FormBuilder, Validators ,ValidatorFn, AbstractControl,ValidationErrors,FormControl} from '@angular/forms';
import {ToastData, ToastOptions, ToastyService} from 'ng2-t... |
import { GetStaticProps, GetStaticPaths } from 'next'
import { ChevronLeftIcon } from '@heroicons/react/outline'
import { TMDB_IMG_URL } from '../../../constants'
import { formatRuntime } from '../../../functions/time'
import parse from 'date-fns/parse'
import PageScoreIcon from '../../../components/PageScoreIcon'
imp... |
import dynamic from 'next/dynamic'
// import Image from 'next/image'
import styled from '@emotion/styled'
import PlayIcon from '@/components/UI/Icons/PlayIcon'
import ModalVideo from '@/components/UI/ModalVideo'
import { useVideo } from '@/hooks/use-video'
export default function Crossflex({ ...rest }: React.HTMLAttr... |
/********************************************************************************
* Copyright (C) 2017 TypeFox 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.org/legal/epl-2.0.
*
* Th... |
<gh_stars>1-10
import { eachCB, keyCB } from '../core/interfaces';
import jsonPointer from '../JSON/Pointer';
import { MAX_SAFE_INTEGER } from '../core/constants';
import isArgs from '../lang/isArgs';
import isPrototype from '../lang/isPrototype';
import { isObject } from '../lang/isObjectTypes';
import { isIndex, isA... |
<filename>src/normalize/index.ts
import { NodeObject } from "jsonld";
import { JsonLdArray } from "jsonld/jsonld-spec";
import { v4 as uuidv4 } from "uuid";
import { namespaces } from "../namespaces";
import {
Blanks,
Cache,
Literal,
LiteralString,
Normalized,
Normalizer,
NormalizeResult,
... |
import * as React from "react";
import * as cx from "classnames";
import { memoize } from "tandem-common";
import { ButtonBarOption } from "../../../../../../inputs/button-bar/controller";
import {
DropdownMenuOption,
dropdownMenuOptionFromValue,
NO_OPTION
} from "../../../../../../inputs/dropdown/controller";
im... |
import "@nivinjoseph/n-ext";
import { given } from "@nivinjoseph/n-defensive";
import { Disposable, Uuid, Make, Deferred, Observer } from "@nivinjoseph/n-util";
import { ApplicationException, ObjectDisposedException } from "@nivinjoseph/n-exception";
import { Worker } from "worker_threads";
export class TaskPool impl... |
import { Injectable } from "@angular/core";
import { SponsorScan, ScanStatus, ScanResult, checkInStatusToScanStatus, LeadStatus } from "./sponsor-scan";
import { Ticket, isValidTicketCode, TicketAndCheckInResult } from "./scan-common";
import { Account } from "../account/account";
import { authorization } from "../../... |
import { ChangeDetectorRef } from '@angular/core';
import { TestBed, async, ComponentFixture } from '@angular/core/testing';
import { AgGridModule } from 'ag-grid-angular';
import { DataEntryStatisticsMonthlyListComponent } from './data-entry-statistics-monthly-list.component';
const mockMonthlyResultRow: any = [
{ ... |
import * as path from 'path';
import * as vscode from 'vscode';
function getWebviewOptions (extensionUri: vscode.Uri): vscode.WebviewOptions {
return {
enableScripts: true,
localResourceRoots: [vscode.Uri.joinPath(extensionUri, 'build')],
};
}
class SPAPanel {
public static currentPanel: SPAPanel | undefined;
... |
<gh_stars>0
/* eslint-disable no-invalid-this */
import fs from "fs-extra";
import path from "path";
import assert from "yeoman-assert";
import "./run-context"; // Side-effects: Overwrites DummyPrompt.prototype.run
// and RunContext.prototype._run
import helpers from "yeoman-test";
import parseArgs from "minimist";
im... |
import { ISubmittableResult } from '@polkadot/types/types';
import BigNumber from 'bignumber.js';
import { assertDistributionDatesValid } from '~/api/procedures/utils';
import {
Checkpoint,
CheckpointSchedule,
Context,
DefaultPortfolio,
DividendDistribution,
initiateCorporateAction,
InitiateCorporateActi... |
import { diff, mount, render } from './vdom'
import {
a,
button,
div,
footer,
h1,
header,
input,
label,
li,
section,
span,
ul,
} from './vdom-helpers'
interface Todo {
isEdited: boolean
text: string
completed: boolean
}
enum TodoFilterCriteria {
ALL = 'all',
ACTIVE = 'active',
COMP... |
import { ColDef, FirstDataRenderedEvent, GridOptions, IDoesFilterPassParams, IFilterComp, IFilterParams, IServerSideDatasource } from '@ag-grid-community/core'
declare function createFakeServer(data: any): any;
declare function createServerSideDatasource(server: any, gridOptions: GridOptions): IServerSideDatasource;
de... |
import GasValue from './gas-value';
import DataPoint from './datapoint';
interface P1MapItem {
id: string;
name: string;
valueRetriever?(values?: Array<string>): string | number | GasValue | undefined;
}
export default class P1Map {
public static parseLine(line: string): DataPoint | undefined {
if (line &... |
<reponame>takJohn/kabloon-farm<filename>src/modules/explosion.ts
import { gameOverSequence } from "./manager";
import { sweetcornPatches } from "./sweetcorn";
import {
eggExplosionSound,
eggExplosionSource,
gameOverSource,
gameOverSound
} from "./audio";
// Player data
const camera = Camera.instance;... |
import './index.scss';
import { $, ExtJsObject, AR } from '../tools/extjs';
export interface userConnectionState {
isConnected: boolean;
connectionTimeLeft: number;
userName: string;
userPlan: string;
}
export default class loginPage {
private _userLoggedIn: (a: userConnectionState) => void;
p... |
import * as fs from 'fs';
import * as path from 'path';
import * as inquirer from 'inquirer';
import * as md5 from 'md5-file';
import chalk from 'chalk';
import loader from 'rc.ts';
import {TypeOf} from 'io-ts';
import {EjectedRCSchema, RCSchema} from '../schemas';
import {header, logStatus} from '../util/misc';
impor... |
import { BaseModel } from "@urban-jungle/shared/models/base";
import { ImageModel } from "@urban-jungle/shared/models/image";
import { makePhotoModel, PhotoModel } from "@urban-jungle/shared/models/photo";
import { makePlantModel, PlantModel } from "@urban-jungle/shared/models/plant";
import { IErr } from "@urban-jungl... |
<reponame>gioragutt/nx
import {
getNpmPackageSharedConfig,
sharePackages,
shareWorkspaceLibraries,
} from './webpack-utils';
import {
createProjectGraphAsync,
ProjectGraph,
readAllWorkspaceConfiguration,
readCachedProjectGraph,
} from '@nrwl/devkit';
import {
getRootTsConfigPath,
readTsConfig,
} from ... |
import React, { useEffect, useState } from 'react';
import { Header, Footer, InstitutionOfEducationCard } from '../../components';
import ErrorBoundry from '../../errorBoundry';
import styles from './institutionsOfEducationListPage.module.scss';
import {
requestSecureData,
requestData,
} from '../../services/reques... |
import { useState } from 'react';
import * as Yup from 'yup';
import { addMinutes } from 'date-fns';
import { validateAddress } from '@taquito/utils';
import { withTranslation, WithTranslation } from 'react-i18next';
import styled from '@emotion/styled';
import { Field, Form, Formik } from 'formik';
import {
Button,
... |
/**
Copyright 2019 Forestry.io 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 to in writing, softwa... |
import { _document } from '@utils/refs'
import { is_Function } from '@utils/is';
import { obj_setProperty } from '@utils/obj';
import { log_warn } from '@core/util/reporters';
import { expression_createBinder, expression_bind, expression_unbind } from '@project/observer/src/exports';
import { customUtil_register } from... |
import { Record, rmerge } from '@quenk/noni/lib/data/record';
import { Object } from '@quenk/noni/lib/data/json';
import { System } from '@quenk/potoo/lib/actor/system';
import { Case } from '@quenk/potoo/lib/actor/resident/case';
import { Immutable } from '@quenk/potoo/lib/actor/resident';
import { Address } from '@q... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.