text
stringlengths
3.08k
15.5k
// Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import { err, UserError, SystemError, v2, TokenProvider, Inputs, Json, Func, ok, QTreeNode, ProjectSettings, SingleSelectQuestion, Platform, } from "@microsoft/teamsfx-api"; import { FxResult, FxCICDPluginResultFactory...
<gh_stars>10-100 import fse from 'fs-extra' import path from 'path' import JSZip from 'jszip' import { Node, Page } from '../entities/page' import { App } from '../entities/app' import { Pages } from './types' import { generatePage } from './templates/page' import { generateRoutes } from './templates/routes' import {...
<reponame>MBoberski/js13k-rewire const calculateTangents = function (attachments: Attachment[]) { for (let i = 0; i < attachments.length - 1; i++) { const a = attachments[i]; const b = attachments[i + 1]; const tangents = getTangents(a.entity.pos, a.entity.spool.size, b.entity.pos, b.entity....
import * as url from 'url'; import { HttpRequest, TraceContext } from '@azure/functions'; import { Contracts } from 'applicationinsights'; import Traceparent from 'applicationinsights/out/Library/Traceparent'; import Tracestate from 'applicationinsights/out/Library/Tracestate'; import { IHeaders } from '@nswhp/af-core...
<gh_stars>1-10 /* @license * Copyright 2019 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the 'License'); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
<reponame>ryo-rm/expo import Log from '@expo/bunyan'; import { ExpoConfig, getConfigFilePaths } from '@expo/config'; import { buildHermesBundleAsync, isEnableHermesManaged, maybeThrowFromInconsistentEngineAsync, } from '@expo/dev-server/build/HermesBundler'; import { importExpoMetroConfigFromProject, importMe...
import { Drag, EventManager, parseHtmlToDom, updateStyle } from "@lin-media/utils"; import { VIDEOVOLUME } from "../config/constant"; import { VolumeButtonIconEnum } from "../config/enum"; import { PlayerEvents, VideoEvents } from "../config/event"; import MediaPlayer from "../index"; import VolumeTpl from "../...
<filename>src/module/libWrapper.ts<gh_stars>1-10 //@ts-nocheck // SPDX-License-Identifier: MIT // Copyright © 2021 fvtt-lib-wrapper <NAME> 'use strict'; // A shim for the libWrapper library export let libWrapper:any = undefined; export const VERSIONS = [1,8,0]; export const TGT_SPLIT_RE = new RegExp("([^.[]...
import Link from 'next/link' import { SearchContainer, SearchContainerInner } from './search.styles' import cn from 'classnames' import { SearchPropsType } from '@lib/search-props' import { useState } from 'react' import { useRouter } from 'next/router' import { Layout } from '@components/common' import { Product } fro...
import Koa from 'koa'; import render from 'koa-ejs'; import mount from 'koa-mount'; import * as Router from 'koa-router'; import * as path from 'path'; import Provider, { errors, interactionPolicy, KoaContextWithOIDC } from 'oidc-provider'; import { Config, Account, InvalidPasswordGrant, JwtMeta, TokenResponseBody } f...
import { EventCodeLanguage, getGameName, Game } from "../types"; import { prepGenericC } from "./prepC"; import { compile } from "../utils/c-compiler"; import { $$log } from "../utils/debug"; import { assemble } from "mips-assembler"; import { prepGenericAsm } from "./prepAsm"; import { scopeLabelsStaticByDefault } fro...
import * as React from 'react'; import bindAll = require('lodash/bindAll'); import get = require('lodash/get'); import noop = require('lodash/noop'); import merge = require('lodash/merge'); import { ISimpleExecutorResult } from 'gooddata'; import { Visualization } from '@gooddata/indigo-visualizations'; import { A...
import BlockDater from 'ethereum-block-by-date' import { BigNumber, providers, Contract, constants } from 'ethers' import { formatUnits } from 'ethers/lib/utils' import { DateTime } from 'luxon' import Db from './Db' import { ethereumRpc, gnosisRpc, polygonRpc, optimismRpc, arbitrumRpc } from './config' impor...
<reponame>Yakubko/simple-templating-intellisense import { AllowedElements, IntellisenseObject } from '../types'; import './style.css'; export type IntellisenseList = { name: string; autocomplete: string; object: IntellisenseObject }; type MeasurementsHelpers = { textArea: HTMLTextAreaElement; fontCanvasCtx: ...
import {Reflection, SignatureReflection, ReflectionKind} from 'typedoc'; import {ProjectService} from '../services/project.service'; import { ReflectionData, DefaultValue, TypedocService, } from '../services/typedoc.service'; import {ContentBySections, ContentService} from '../services/content.service'; export ...
import React, { useState } from "react"; //import { chefs as importedChefs, Chef } from "../data"; import { StyleSheet, View, FlatList, TextInput, Pressable, ColorValue, Image, Text, } from "react-native"; import { User } from "../data"; import { StandardText } from "./StandardText"; import {chefColors...
<gh_stars>0 import styled from "styled-components"; export const ScreenOverlay = styled.div` position: absolute; z-index: 10; top: 0; right: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0.7); ` export const AddReview = styled.div` height: 100vh; width: 500px; background-color: #...
<filename>src/scripts/drawables/effects/ArcaneBoltEffect.ts import { Facings, Faction, PossibleTargets, UiDepths } from '../../helpers/constants'; import AbilityEffect from './AbilityEffect'; import MainScene from '../../scenes/MainScene'; import CharacterToken from '../tokens/CharacterToken'; import { VISITED_TILE_TIN...
/// <reference types="chrome"/> // @ts-nocheck import React, { useState, useEffect, Ref, ReactChildren, createRef } from 'react' import styled, { css } from 'styled-components'; import { wallpapers, gifs, gradients, ASSET_TYPES } from "./backgroundAssets" import { preventSelectStyles } from './components'; import { Ap...
import React, { useMemo } from 'react' import { useDb } from '../../lib/db' import { useDialog, DialogIconTypes } from '../../../lib/dialog' import { useContextMenu, MenuTypes } from '../../../lib/contextMenu' import NavigatorItem from '../atoms/NavigatorItem' import { NoteStorage } from '../../../lib/db/types' import ...
import { LanguageClient, LanguageClientOptions, ServerOptions, TransportKind, CodeActionParams, ProvideCodeActionsSignature, CodeActionRequest, CodeAction as lsCodeAction, } from "vscode-languageclient"; import { ExtensionContext, commands, window, TextDocument, Range, CodeActionContext, C...
import { ButtonBase, Divider, Drawer, List, ListItem, ListItemIcon, ListItemText, ListSubheader, } from "@material-ui/core"; import AppBar from "@material-ui/core/AppBar"; import IconButton from "@material-ui/core/IconButton"; import InputBase from "@material-ui/core/InputBase"; import { createStyles,...
<gh_stars>1-10 /* * Copyright 2020 <NAME> * * 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 appli...
<filename>src/Spread/Spreader.test.ts import * as chai from 'chai'; import { cloneDeep } from '../Util'; import { CanvasSize, CategoriesCoefficients, SpreadSizeConfig } from '.'; import { Bounds } from '../Geo'; import { Category, Level, Place } from '../Places'; import { spread } from './Spreader'; const bounds: Bou...
<reponame>whispeer/app import * as Bluebird from "bluebird" import { File, FileEntry, Entry } from '@ionic-native/file' import Cache from "../services/Cache" import h from "../helper/helper" // tslint:disable-line:no-unused-variable const BLOB_CACHE_DIR = "blobCache" const LOCK_TIMEOUT = 30 * 1000 const FILE = new Fi...
<reponame>bashmish/polymer-tools /** * @license * Copyright (c) 2016 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * Th...
import { Button, Divider, Icon, Modal, Tabs } from 'antd'; import React from 'react'; import intl from 'react-intl-universal'; import { connect } from 'react-redux'; import { match, RouteComponentProps, withRouter } from 'react-router-dom'; import PrivateRoute from '#assets/PrivateRoute'; import { IDispatch, IRootStat...
import { safeStringify } from '@stoplight/json'; import { Resolver } from '@stoplight/json-ref-resolver'; import { IUriParser } from '@stoplight/json-ref-resolver/types'; import { getLocationForJsonPath as getLocationForJsonPathJSON } from '@stoplight/json/getLocationForJsonPath'; import { parseWithPointers as parseJSO...
<filename>angular/src/app/cockpit-area/services/waiter-cockpit.service.spec.ts import { HttpClientTestingModule } from '@angular/common/http/testing'; import { async, inject, TestBed } from '@angular/core/testing'; import { OrderView } from '../../shared/view-models/interfaces'; import { PriceCalculatorService } from '...
export declare type AnyFunction = (...args: any[]) => any; export declare type TargetFunction = AnyFunction; export declare type AnyObject = { [field in (number | string)]: any; }; export declare type TargetObject = AnyObject; export declare type SaveObject = AnyObject; export declare type Target = TargetObject | T...
/* * @author: SkyBlue * @LastEditors: SkyBlue * @Date: 2020-09-25 09:38:05 * @LastEditTime: 2020-10-09 10:57:20 * @Gitee: https://gitee.com/skybluefeet * @Github: https://github.com/SkyBlueFeet */ import { Viewer, ScreenSpaceEventType, ScreenSpaceEventHandler, Entity } from 'cesium' import { uniqueId } f...
/** * Copyright (c) Microsoft 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/LICENSE-2.0 * * Unless required by applicable law or...
import * as React from 'react'; import JqxCheckBox from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxcheckbox'; import JqxDropDownList, { IDropDownListProps } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxdropdownlist'; import JqxTagCloud, { ITagCloudProps, jqx } from 'jqwidgets-scripts/jqwidgets-react-tsx/jqxtagclou...
import React, {useState, useEffect, useContext} from 'react' import {AxiosService} from '../../../services/AxiosService/AxiosService' // Components import {Button} from '../../reusables/Button/Button' import {PictureInput} from '../../reusables/PictureInput/PictureInput' import {ProgramForm, IProgramFormInputs} from '...
// Imports import { Renderer } from './gameEngine/windowManager/renderer'; import { TextureLoader } from './gameEngine/loadManager/textureLoader'; import { Sprite } from './gameEngine/objectManager/sprite'; import { Texture } from './gameEngine/objectManager/texture'; import { Vector2f } from './gameEngine/math/ve...
<reponame>swellaby/generator-lets-go 'use strict'; import chai = require('chai'); import YeomanGenerator = require('yeoman-generator'); import inquirer = require('inquirer'); import IProjectConfig = require('../../../../generators/app/interfaces/project-config'); import moduleInput = require('../../../../generators/a...
<reponame>lepidotteri/mev-inspect-ts import * as _ from "lodash"; import { Interface} from "ethers/lib/utils"; import { BigNumber } from "@ethersproject/bignumber"; import { printTable } from 'console-table-printer'; import { BlockData } from "./BlockData"; import { DEXQuery} from "./DEXQuery"; import { ERC20_ABI } fr...
<gh_stars>0 // boolean const isDone = false; // number const height = 6; // array const list = [1, 2, 3]; // string let str = "hello word"; // enum enum Color { Red, Green, Blue }; let c: Color = Color.Red; // any let notSure: any = 4; notSure = "maybe a string instead"; notSure = false; let list1: any[] = [1, tr...
import { Contract, ethers } from "ethers"; import { addresses } from "../constants"; import { abi as ierc20Abi } from "../abi/IERC20.json"; import { abi as OlympusStaking } from "../abi/OlympusStaking.json"; import { abi as sSGOD } from "../abi/sSGOD.json"; import { abi as sSGODv2 } from "../abi/sOhmv2.json"; import { ...
import { Injectable } from '@angular/core'; import { Platform } from '@ionic/angular'; import { Logger } from 'src/app/logger'; import { ContactAvatar } from 'src/app/services/contactnotifier.service'; import { GlobalNotificationsService, Notification } from 'src/app/services/global.notifications.service'; import { Glo...
/** * * Run a home server, doc worker, and static server as a single process for regular * development work. * * PORT -- this sets the main web server port (defaults to 8080) * HOME_PORT -- this sets the main home server port (defaults to 9000) * STATIC_PORT -- port for the static resource serv...
<filename>src/test/translate.test.ts import { customElement, html, LitElement, property } from "lit-element"; import { repeat } from "lit-html/directives/repeat"; import { get, LanguageIdentifier, registerTranslateConfig, translate, translateUnsafeHTML, use } from "../lib/index"; import { daStrings, enStrings } from "....
<gh_stars>0 import { VirtualNode, VirtualElementNode, RealNode, StringVirtualNode, VirtualComponentNode, TextNode, ElementNode, ComponentNode, Props, } from './types'; import { NodeMap } from './map'; import { isString } from './util'; import { unmount } from './mount'; import { execute } from './hook...
import type { ColumnIconOption, FontIcon, ImageIcon, NamedIcon, PathIcon, SvgIcon, } from "../ts-types"; import type { SimpleColumnIconOption } from "../ts-types-internal"; type ColumnIconArrayOption = { content?: (string | null)[]; font?: (string | null)[]; color?: (string | null)[]; className?: (...
<reponame>JonathanWilbur/ansi-x9-62-ts<gh_stars>0 /* eslint-disable */ import { ASN1ConstructionError as _ConstructionError, ASN1Element as _Element, ASN1TagClass as _TagClass, INTEGER, OBJECT_IDENTIFIER, } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; export { BasisTyp...
import * as React from 'react'; import { axe } from 'jest-axe'; import { render, fireEvent, RenderResult, waitFor } from '@testing-library/react'; import * as Accordion from './Accordion'; import { getSelector } from '@radix-ui/utils'; const ITEMS = ['One', 'Two', 'Three']; describe('given a basic Accordion', () => {...
import '@brightlayer-ui/angular-themes/theme.scss'; import { CommonModule } from '@angular/common'; import { Component, NgModule } from '@angular/core'; import '@fontsource/open-sans/300.css'; import '@fontsource/open-sans/300-italic.css'; import '@fontsource/open-sans/400.css'; import '@fontsource/open-sans/400-italic...
<gh_stars>1-10 import { maxScale, minScale } from 'app/gameConstants'; import { handleDungeonClick } from 'app/scenes/dungeonScene'; import { handleMapClick } from 'app/scenes/mapScene'; import { handleSkillsClick } from 'app/scenes/skillsScene'; import { handleTitleClick } from 'app/scenes/titleScene'; import { handle...
import throttle from 'lodash/throttle'; import React from 'react'; import styled from 'styled-components'; import { drawVectorLayer as actuallyDrawVectorLayer, setSizeAndSetUpMap as actuallySetSizeAndSetupMap, } from './Utils'; const mapBackgroundColor = 'rgb(245,245,245)'; interface GenericGeoJSONFeature<G exten...
<reponame>blessanm86/extensions import { XcodeSwiftPlaygroundCreationParameters } from "../models/swift-playground/xcode-swift-playground-creation-parameters.model"; import { XcodeSwiftPlayground } from "../models/swift-playground/xcode-swift-playground.model"; import { XcodeSwiftPlaygroundPlatform } from "../models/sw...
import React, { useState, useEffect, useCallback } from "react"; import Footer from "../components/Footer"; import Header from "../components/Header"; import BusinessNav from "../components/businessNav"; // material-ui components import Grid from "@material-ui/core/Grid"; import Typography from "@material-ui/core/Typog...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *----------------------------------------------------------------------...
<filename>src/util/treemap.ts /** * MIT License * * Copyright (c) 2021 <NAME> * * 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 ri...
<gh_stars>0 /** * @Author: yanxinaliang (<EMAIL>) * @Date: 2018/7/15 15:24 * @Last Modified by: yanxinaliang (<EMAIL>) * * @Last Modified time: 2018/7/15 15:24 * @disc:多边形 * 使用折线来实现,需要考虑border边线设置问题,如果没有边线则最终绘制时需要将其去除, 起始点需要考虑磁铁效果 */ import {AbstractShapePlugin} from '../../AbstractShapePlugin'; impor...
<gh_stars>10-100 /** * * Copyright 2018 Infosys Ltd. * Use of this source code is governed by MIT license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT.” * **/ import { BrowserModule } from "@angular/platform-browser"; import { NgModule, APP_INITIALIZER, CUSTOM_ELEMENTS_SCHEMA, NO_ER...
import NgModelConnector from '../utils/ng-model-connector'; import { IFormController, IInterpolateService, ILogService, IPostLink, ITemplateCacheService, ITimeoutService } from 'angular'; import {ObjectValueEditorField} from '../meta-editors/object/object-value-editor-configuration.provider'; im...
<filename>src/rules/reactPureComponentsHaveSimpleAttributesRule.ts import * as Lint from 'tslint' import * as ts from 'typescript' import { descendInto } from '../utils' // tslint:disable strict-boolean-expressions no-console export class Rule extends Lint.Rules.TypedRule { /* tslint:disable:object-literal-sort-keys...
import { Identity, ProviderIdentity, EventPayload } from '../../shapes'; import ofEvents from '../of_events'; import route from '../../common/route'; import { RemoteAck, AckFunc, NackFunc } from '../api_protocol/transport_strategy/ack'; import { sendToIdentity } from '../api_protocol/api_handlers/api_protocol_base'; i...
<gh_stars>0 /// <reference path="refs/node.d.ts" /> /// <reference path="refs/gpsoauthnode.d.ts" /> /// <reference path="refs/protobufjs.d.ts" /> import ProviderType from './Auth/ProviderType'; import GoogleProvider from './Auth/GoogleProvider'; import PokemonClubProvider from './Auth/PokemonClubProvider'; import Prot...
<gh_stars>1-10 /* * Copyright 2021-present <NAME> * * 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 ...
/* * Copyright 2018 herd-ui contributors * * 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 ...
import React, { useState, useEffect } from 'react'; import styled from '@emotion/styled'; import { useQuery } from '@apollo/react-hooks'; import gql from 'graphql-tag'; import css from '@emotion/css'; import { useHistory } from 'react-router-dom'; import variables from '../scss/_variables.scss'; import NaiveContainer...
<filename>src/components/dialogs/optionsToBuildDialog.ts import "phaser"; import { Dialog } from "src/components/dialogs/Dialog"; import { tile, invisible, visible } from "src/utils/gameConfigurations"; import { CreateBuildingCommand } from "src/commands/createBuildingCommand"; import { buildingsOptionsData } from "../...
import * as React from 'react'; import * as ReactDOM from 'react-dom'; import App from './App'; import ComingSoon from './components/CustomFunctionsDashboard/ComingSoon'; import { initializeIcons } from 'office-ui-fabric-react/lib/Icons'; import { storage, environment, getCustomFunctionEngineStatus, isCustomFun...
import fs from "fs-extra"; import path from "path"; import { BeatsaverKey, BeatsaverKeyType, toStrKey, } from "@/libraries/beatmap/repo/BeatsaverKeyType"; import { BeatsaverItem, BeatsaverItemInvalid, BeatsaverItemValid, } from "@/libraries/beatmap/repo/BeatsaverItem"; import store from "@/plugins/store"; i...
// a list of tokens by chain import { Currency, Ether, Token, WETH9 } from '@uniswap/sdk-core' import { AMPL, DAI, ETH2X_FLI, FEI, FRAX, FXS, MIR, renBTC, TRIBE, UMA, UNI, USDC, USDT, UST, WBTC } from './tokens' type ChainTokenList = { readonly [chainId: number]: Token[] } type ChainCurrencyList = { readonly [cha...
<reponame>serge-web/serge import { CUSTOM_MESSAGE, INFO_MESSAGE, CHAT_MESSAGE, FEEDBACK_MESSAGE, FORCE_LAYDOWN, VISIBILITY_CHANGES, PERCEPTION_OF_CONTACT, SUBMIT_PLANS, STATE_OF_WORLD, INFO_MESSAGE_CLIPPED, CREATE_TASK_GROUP, LEAVE_TASK_GROUP, HOST_PLATFORM, DELETE_PLATFORM, CollaborativeM...
/* © 2020 NetSuite Inc. User may not copy, modify, distribute, or re-bundle or otherwise make available this code; provided, however, if you are an authorized user with a NetSuite account or log-in, you may use this code subject to the terms that govern your access and use. */ /// <amd-module name="Tracker"/> imp...
<gh_stars>1-10 import { Action } from 'redux' // import { IValueMap } from 'common' // import { ISample } from 'samples' import {ITaxonomyForSunburst} from '../../utils/interfaces' import {Enzyme} from '../../db/entities/Enzyme' import {ISampleFilter, IDomain} from 'samples' import {Bin} from '../../db/entities/Bin' im...
'use strict'; import { ExtensionContext, TreeDataProvider, EventEmitter, Event, TreeItem, TreeItemCollapsibleState, ProviderResult, Uri, Command, workspace } from 'vscode'; import { CheckpointsModel, ICheckpointStore, IFile, ICheckpoint } from './CheckpointsModel'; export class Chec...
<filename>src/index.ts import { NativeModules } from 'react-native'; export type Amount = { value: number; currencyCode: string; }; export type CardConfiguration = { showsHolderNameField: boolean; showsStorePaymentMethodField: boolean; showsSecurityCodeField: boolean; }; export type ApplePayConfiguration =...
<gh_stars>100-1000 'use strict'; import * as vscode from 'vscode'; import * as fs from 'fs'; import * as _ from 'lodash'; import { attach } from 'neovim'; import { NeovimClient } from 'neovim/lib/api/client'; import { TaskQueue } from 'aurelia-task-queue'; import { Position } from './src/common/motion/position'; impor...
<filename>packages/editor-core/src/plugins/panel/index.ts import { analyticsService } from '../../analytics'; import { EditorState, PluginKey, EditorView, Schema, NodeViewDesc, TextSelection, Plugin, Node, } from '../../prosemirror'; import { panelNodeView } from '../../nodeviews'; import inputRulePlugi...
import CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline'; import CloseIcon from '@mui/icons-material/Close'; import GppBadIcon from '@mui/icons-material/GppBad'; import { Alert, Breadcrumbs as MuiLibBreadcrumbs, Button, IconButton, Rating, TextField, Tooltip } from '@mui/material'; import React from ...
<filename>src/lib/data/planEntities.ts<gh_stars>0 import { findAndOrganizeObjectsByUniqueProperty } from '../../db/fetching'; import { EntityPrototypeId } from '../../db/models/entityPrototype'; import { GoverningEntityId } from '../../db/models/governingEntity'; import { PlanId } from '../../db/models/plan'; import { ...
<gh_stars>1-10 import { AnyFunction } from '@ergodark/types'; import { fetch, setGlobalFetchConfig } from '../src/index'; import { unitServer } from './setup'; const useSwr = async (key: string, fetcher: (url: string) => Promise<unknown>) => { let data: { myData: number } = { myData: -1 }; let error; try { ...
import { DNode } from '@dojo/framework/widget-core/interfaces'; import { ThemedMixin, theme, ThemedProperties } from '@dojo/framework/widget-core/mixins/Themed'; import { WidgetBase } from '@dojo/framework/widget-core/WidgetBase'; import { customElement } from '@dojo/framework/widget-core/decorators/customElement'; imp...
<gh_stars>0 import React, { useEffect, useMemo, useReducer, useRef } from 'react' import {omit as _omit} from 'lodash' import { LocalStorage, STORAGE_TABLE_SETTINGS } from '../../application/utils/LocalStorage' import {ITableRowSettings} from '../Table' enum TABLE_STATE_ACTIONS {...
import StreamID from '@ceramicnetwork/streamid'; import { AnchorService, AnchorStatus, Context, CreateOpts, DocState, DocStateHolder, LoadOpts, } from '@ceramicnetwork/common'; import { PinStore } from '../store/pin-store'; import { NamedTaskQueue } from './named-task-queue'; import { DiagnosticsLogger } fr...
<gh_stars>0 // アイドルの属性 export type IdolType = 'Princess' | 'Fairy' | 'Angel' | 'Extra' | 'Sora'; // アイドルの情報 interface IdolInfo { name: string; kana: string; type: IdolType; } // アイドル一覧 // prettier-ignore export const IDOL_LIST: IdolInfo[] = [ { 'name': '春香', 'kana': 'はるか', 'type': 'Princess' }, { 'name': '千早'...
import Big from 'big.js'; import { BMICategoryName, SuggestedNextDiff, SuggestedWeightDiff } from 'src/app/core/services/BMI/utils/types'; import { calcBMICoeff, calcBMIValue } from 'src/app/core/services/BMI/utils/utils'; import { BMI, Cm, Gender, Kg } from 'src/app/shared/types'; import { assert } from 'src/shared/ut...
// tslint:disable-next-line: no-implicit-dependencies import PackageGraph from '@lerna/package-graph'; import fs from 'fs'; import path from 'path'; import { PackageContext } from './types'; const SEMANTIC_COMMIT_PATTERN = /^(\w+)(?:\(([^)]*)\))?:\s*(.*)$/; const COMMENT_INJECTION_POINT = '<!-- INJECT CHANGELOG HERE -...
import type { ErrorNode, Type } from "@sdkgen/parser"; import { ArrayType, Base64PrimitiveType, BigIntPrimitiveType, BoolPrimitiveType, BytesPrimitiveType, CnpjPrimitiveType, CpfPrimitiveType, DatePrimitiveType, DateTimePrimitiveType, EmailPrimitiveType, EnumType, FloatPrimitiveType, HexPrimit...
<gh_stars>10-100 import { computed, ComputedRef, onUnmounted, ref } from 'vue'; import { SubtitleEntry } from '@/subtitle/store'; import { Store } from 'storeTypes'; import { mergeMap, takeUntil, tap } from 'rxjs/operators'; import { merge, Subject, interval } from 'rxjs'; interface InitPayload { use: { contentS...
<filename>src/pose/pose.ts import { basicEmbed } from "./embedder/basic-embedder"; import { IPoint, IRectangle } from "./models/common"; import { Polygon } from "./models/polygon"; import { AdjList, EmbedderOptions } from "./embedder/iembedder"; import { area, boundingBox, distance } from "./utils"; import { GridSquare...
import { MyCanvas } from './my-canvas' import { CommandStack, CommandToken, LogoProcedure, MathOperator, RepeatReturnToken, TokenStackElement } from './commands' import { CanvasRenderer } from './canvas-renderer' // shorthand for parsing decimal numbers const parseDecimal = (val: string) => parseInt(val, 10) /** * T...
<gh_stars>1-10 import * as dateFormat from "./date"; export interface IFormat { index: number; value: string; } export default class dateRegFormat { /** * @param {number} _stamp 时间戳转时间 * @param {string} _type 类型 * @param {string} _format 格式 * @param {boolean} _Chinese 是否是中文 * @returns {string} 时间 ...
import { comparePrimitive, Compare, compareNullable, compareUndefined, compareOn, compareField, compareArray, compareCompose, } from './compare' interface InnerTestObject { someString: string trueOrFalse: boolean } interface TestObject { aNumber: number anInnerValue: InnerTestObject } functio...
import React from 'react'; import styled from '@emotion/styled'; import {t} from 'app/locale'; import {openInviteMembersModal} from 'app/actionCreators/modal'; import {sourceMaps} from 'app/data/platformCategories'; import { Organization, OnboardingTaskDescriptor, OnboardingTaskKey, OnboardingTask, Project, ...
import {Discriminator} from './discriminator'; class Wisard { discriminators : Map<number,Discriminator>; classesQuantity: number; inputSize: number; mapping : Array<Array<number>>; ramsContents : Map<number,Array<number>>; possibleClasses: Array<number>; possibleClassesScoreMap : Map<numbe...
// ref: // - https://umijs.org/plugins/api import { IApi } from '@umijs/types' ; import chokidar from 'chokidar'; import path from 'path' import signale from 'signale'; import prod from './prod' import socketConnect from './socketConnect'; import createApp from './appInit' import jcyFs from 'jcy-fs' import chalk from '...
<gh_stars>1-10 import { isArray } from './utils'; export type GestureHandler = () => void; export interface GestureList { [key: string]: GestureHandlerItem[]; } export type GestureHandlerItem = { gestureHandler: GestureHandler; gestureAction: GestureAction[]; }; export type KeyType = { mouseType: 'L...
"use strict"; import { Client, Guild, GuildMember, Role } from "discord.js"; import db from "quick.db"; const guildConfig = new db.table("guildConfig"); import { timeToMidnight } from "./functions"; const RoleNameJoin = "Join Anniversary", RoleNameCreated = "Cake Day"; async function DateObject() { const d = new Dat...
<reponame>litentry/litentry-graph import type { DeriveProposal, DeriveReferendumExt } from '@polkadot/api-derive/types'; import type { u32 } from '@polkadot/types'; import type { BlockNumber } from '@polkadot/types/interfaces'; import { BN, BN_HUNDRED, BN_ONE } from '@polkadot/util'; import type { DemocracyProposal, ...
/// <reference types="../types/blake2b-wasm" /> import * as util from 'util' import JSBI from 'jsbi' import ECPair from './ecpair' import { pubkeyToAddress, AddressOptions } from './address' import { assertToBeHexStringOrBigint } from './validators' import { HexStringShouldStartWith0x, ArgumentRequired } from './excep...
<filename>src/components/finder.ts<gh_stars>0 import {assignmentService} from "./assignment_service" import {log} from "./support/log"; import {AssignmentType} from "./assignments/assignment" class Finder { private static filterIncludes<T>(value: T, filterValues: T[]) : boolean { if(!!filterValues) { if(_.isArr...
<gh_stars>0 import chroma from 'chroma-js' import { css } from '@emotion/core' export const fontSize = { xs: '1rem', sm: '1.5rem', md: '2rem', lg: '2.5rem', xl: '3rem', xxl: '3.5rem', charTitle: '13rem' } export const fontWeight = { xs: 200, sm: 300, md: 400, lg: 500, xl: 600 } const colorDar...
<reponame>mec/homebridge-drayton-wiser<gh_stars>1-10 import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, } from 'homebridge'; import { Subscription, timer } from 'rxjs'; import { Device, FullStatus, Room, WiserClient, } from '@string-bean/drayton-wiser-client'; import { Wis...
import React from 'react'; import cx from 'classnames'; import { ExternalLink, Link } from './Link'; import { Branch, Commit, GitHub, Menu, PullRequest, Twitter } from './Icons'; import { Image } from './Image'; import { Search } from './Search'; import { hasScrolled, useConfig, usePreviewMode, useSlugProperties } fro...
<gh_stars>1-10 import fs from 'fs' import path from 'path' import { Back, BackMode, BackOptions } from 'nock' import { validateNotNil, validateString } from 'validation-utils' export declare interface PassthroughMatcherConfig { passthroughPortWhitelist?: number[] } export declare interface NockbackHelperConfig { ...