text stringlengths 3.3k 33k |
|---|
<gh_stars>1-10
import SyncPush, { SyncPushInterface } from "./SyncPush";
import Rsync from "@root/tool/rsync";
import * as upath from "upath";
import * as child_process from 'child_process';
import path, { dirname } from "path";
import os from 'os';
const chalk = require('chalk');
export interface SynPullInterface ext... |
/* adapted from https://github.com/gcanti/fp-ts */
import * as AP from "../Apply"
import type {
HKT,
CSequence1,
CApplicative,
CTraverse1,
CMonad1,
CFoldable1,
CTraversable1,
CAlt1,
CComonad1,
CApplicative1,
Monad1,
Foldable1,
Traversable1,
Alt1,
Comonad1,
ChainRec1,
Applicative1,
T... |
import { Component, EventEmitter, Input, OnInit, Output, TemplateRef, ViewChild } from '@angular/core'
import { ActivatedRoute, Router } from '@angular/router'
import { TezosNetwork } from 'airgap-coin-lib/dist/protocols/tezos/TezosProtocol'
import { combineLatest, Observable, EMPTY } from 'rxjs'
import { filter, map, ... |
<reponame>swimos/swim
// Copyright 2015-2021 Swim.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 applica... |
import * as React from 'react';
import styled from '@emotion/styled';
import { Badge, Button, message, Modal, Progress, Tooltip, Typography } from 'antd';
import { IconGithubLogo, IconLanguage, IconSetting, IconSignal, IconUpload } from '@douyinfe/semi-icons';
import { withSemiIconStyle } from '@/style';
import { AppSt... |
import { DOCUMENT_MODE, NAMESPACES } from '../common/html.js';
import type { Attribute, Location, ElementLocation } from '../common/token.js';
import type { TreeAdapterTypeMap } from './interface.js';
export enum NodeType {
Document = '#document',
DocumentFragment = '#document-fragment',
Comment = '#commen... |
import { Injectable } from '@angular/core';
import { TranslateService } from '@ngx-translate/core';
import { Tip } from '../model/tip.model';
import { TipAudience } from '../model/tipaudience.model';
import * as moment from 'moment';
import { GlobalPreferencesService } from 'src/app/services/global.preferences.service'... |
import { FileManager } from './filemanager';
import { DBC } from '../formats/dbc/dbc';
import { TextureVariation, CharVariation, Regions } from './consts';
import { Model, TextureReplacement } from '../formats/mdx/model';
import { ITextureManager } from './itexturemanager';
import { CharacterRenderer } from '../rendere... |
<reponame>medplum/medplum
import { Filter, Operator, SearchRequest, SortRule } from '@medplum/core';
import { readJson } from '@medplum/definitions';
import { Bundle, BundleEntry, SearchParameter } from '@medplum/fhirtypes';
import { URL } from 'url';
/**
* Parses a FHIR search query.
* See: https://www.hl7.org/fhir... |
import ValidationError from '../../ValidationError';
import log from '../../logger';
import {
stripFields, dumpJSON, duplicateItems
} from '../../utils';
import { calculateChanges } from '../../calculateChanges';
import { Asset, Assets, Auth0APIClient, CalculatedChanges} from '../../../types'
import { ConfigFunction... |
import { faEdit, faLevelDownAlt, faTimes, faUserGraduate, faUserNinja, faUserTie } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Button, Grid, TextField, Typography } from '@material-ui/core';
import SendIcon from '@material-ui/icons/Send';
import {... |
// Feeds view
export {
init, // initialization
show, // show feeds view, includes filter from location.hash
};
import Tablesort = require("tablesort");
import { rest } from "./rest";
import { toTimeOrDate, eH } from "./util";
import * as keydown from "./keydown";
import * as cataas from "./cataas";
import * as ... |
// This file contains all methods to connect the webapp to the projectIt generated language editorEnvironment and to the server that stores the models
import {
PiError,
PiErrorSeverity,
PiLogger
} from "@projectit/core";
import type {
PiElement,
PiModel,
PiModelUnit,
PiNamedElement
} from "@... |
import { URLSearchParams, Http, Headers, RequestOptions } from '@angular/http';
import { HttpHeaders, HttpClient, HttpParams, HttpResponse, HttpResponseBase } from '@angular/common/http';
import { environment } from '../../environments/environment';
import { session } from '../widget/script/sessionStorage';
import { In... |
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import Checkbox from '@material-ui/core/Checkbox';
import IconButton from '@material-ui/core/IconButton';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import Menu from... |
<filename>src/lib/api/helper/signature.ts
'use strict';
const url = require('url');
const querystring = require('querystring');
const sha256 = require('crypto-js/sha256');
const hmacSHA256 = require('crypto-js/hmac-sha256');
function hmac(key, string, encoding) {
return hmacSHA256(string, key).toString();
}
functio... |
<filename>packages/Peptides/src/package.ts
/* Do not change these import lines. Datagrok will import API library in exactly the same manner */
import * as grok from 'datagrok-api/grok';
import * as ui from 'datagrok-api/ui';
import * as DG from 'datagrok-api/dg';
import * as C from './utils/constants';
import {
Ali... |
<reponame>MartinRGB/TweakIt-Desktop
// import MseDecoder from '../decoder/MseDecoder';
// import Decoder from '../decoder/Decoder';
import MseDecoder from '../decoder/MseDecoder';
import Decoder from '../decoder/Decoder';
import { BaseClient } from '../client/BaseClient';
import { ScrcpyStreamParams } from '../interf... |
<filename>src/actions/google/ads/lib/ads_form_builder.ts
import * as Hub from "../../../../hub"
import { GoogleAdsActionRequest } from "./ads_request"
const CREATE_LIST_OPTION_NAME = "create"
interface SelectFormOption {name: string, label: string}
interface AdsCustomer {
resourceName: string
manager: boolean
... |
import esri = __esri;
import { subclass, property } from '@arcgis/core/core/accessorSupport/decorators';
import Widget from '@arcgis/core/widgets/Widget';
import { tsx } from '@arcgis/core/widgets/support/widget';
import Collection from '@arcgis/core/core/Collection';
import { geodesicBuffer } from '@arcgis/core/geome... |
import React, { lazy, useContext, useEffect } from "react"
import clsx from "clsx"
import { makeStyles, Container, Hidden, Box } from "@material-ui/core"
// tslint:disable-next-line: no-submodule-imports
// tslint:disable-next-line: no-submodule-imports
import AppBar from "@material-ui/core/AppBar"
// tslint:disable-ne... |
// Copyright (c) 2018-19 MalvaHQ
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
"use strict";
import * as path from "path";
import { CompilerConfig, SASSOutputFormat } from "./config";
import { Log } from "./log";
import { ProcessOutput, killProcess, getWatcherPattern } f... |
import {
AfterViewInit,
ChangeDetectionStrategy,
Component,
ElementRef,
EventEmitter,
forwardRef,
Inject,
Injector,
OnDestroy,
OnInit,
ViewChild,
ViewEncapsulation
} from '@angular/core';
import { FormControl } from '@angular/forms';
import { MatCheckboxChange, MatMenu } from '@angular/material'... |
<gh_stars>0
import equal from 'fast-deep-equal'
import { PageUpdateBuffer } from './UpdateBuffer'
import {
VirtuleModuleAPIs,
FileHandlerAPIs,
VirtualModulesManager,
} from '../utils/virtual-module'
import type { FileHandler, PageAPIs, DataPiece } from './types.doc'
const PAGE_MODULE_PREFIX = '/@vp-page'
const ... |
<reponame>clizzyjc/react-diff-viewer
import * as diff from 'diff';
import { element } from 'prop-types';
import { diff_match_patch} from 'diff-match-patch';
import 'diff-match-patch-line-and-word';
const dmp = new diff_match_patch();
const jsDiff: { [key: string]: any } = diff;
export enum DiffType {
DEFAULT = 0,
... |
<reponame>eloisetwaine/cypress
/**
* More information about our build process lives inside of the
* CONTRIBUTING.md
*
* @summary Build pipeline for all new commands
* @docs https://gulpjs.com
* @usage `yarn gulp myTaskName` from the workspace root directory
*/
import gulp from 'gulp'
import { autobarrelWatcher ... |
/*!
* Copyright 2017 QTGate systems Inc. All Rights Reserved.
*
* QTGate systems 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... |
<filename>src/setting-tab.ts
import "setting-tab.less";
import assertNever from "assert-never";
import { cloneDeep } from "lodash-es";
import {
App,
debounce,
Modal,
Notice,
PluginSettingTab,
Setting,
TextComponent,
} from "obsidian";
import t from "./lang/helper";
import { filterKeyWithType, strToFragm... |
//based on ant-design/ant-design-colors
import { TinyColor } from "@ctrl/tinycolor";
import { getContrast } from "./KColorPalette";
const hueStep = 2;
const saturationStep = 0.16;
const saturationStep2 = 0.05;
const brightnessStep1 = 0.05;
const brightnessStep2 = 0.15;
const lightColorCount = 5;
const darkColorCount =... |
<filename>client/insight/src/cell-status/station-cycles.ts<gh_stars>1-10
/* Copyright (c) 2021, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain t... |
<reponame>soerenbf/concordium-desktop-wallet
/* eslint-disable @typescript-eslint/no-explicit-any */
import {
OpenDialogOptions,
OpenDialogReturnValue,
Rectangle,
SaveDialogOptions,
SaveDialogReturnValue,
} from 'electron';
import {
Account,
Identity,
AddressBookEntry,
Credential,
... |
import Trie from "./Trie";
import Scanner from "./Scanner";
import Parselet from "./Parselet";
import Iterator from "./Iterator";
import Node from "./Node";
import SyntaxError from "./SyntaxError";
import Token from "./Token";
// it's safe to define symbols ahead of time, provided we throw a matching
// error if no p... |
import React, { useMemo, useState } from 'react';
import { toast } from 'react-toastify';
import { getNameInitials } from '../../../../utils/getNameInitials';
import { format } from '../../../../utils/format';
import { useWindowSize } from '../../../../hooks/useWindowSize';
import api from '../../../../services/api'... |
const fetch = require("isomorphic-fetch");
const shortId = require("shortid");
import { v4 as uuidv4 } from "uuid";
const URI = require("urijs");
interface PlainObjectType {
[key: string]: any;
}
type CkanFuncTypes =
| "site_read"
| "package_list"
| "current_package_list_with_resources"
| "revisi... |
/*
* Copyright (c) 2020 <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 rights
* to use, copy, modify, merge, publis... |
import { isArray, isObjectLike, typeOf } from '@ngx-simple/core/typeof';
import { SafeAny } from '@ngx-simple/core/types';
const objectTag = '[object Object]';
const boolTag = '[object Boolean]';
const dateTag = '[object Date]';
const errorTag = '[object Error]';
const mapTag = '[object Map]';
const numberTag = '[obje... |
<filename>src/easing.ts
/**
* 关于缓动函数名
*
* 1. linear 为线性函数
* 2.
* 3. ease 类,各后缀的意义如下
* In 加速
* Out 减速
* InOut 先加速、后减速
*
* Sine 为三角函数实现
* Quad 为二次方
* Cubic 为三次方
* Quart 为四次方
* Quint 为五次方
* Circ 为开平方根
* Expo 为开立方根
* Elastic 为结合三角函数和开立方根的初级弹簧效果
* Back 为使用常数 1.70158 ... |
import React, { createContext, useCallback, useMemo, useRef, useContext } from 'react';
import classNames from 'classnames';
import { ConfigProvider, Row, Col } from 'antd';
import omit from 'omit.js';
import CheckCard from './index';
import './index.less';
import { useMountMergeState } from '@ant-design/pro-utils';
e... |
import React, { Component } from "react";
import {
Dimensions, // Detects screen dimensions
Platform, // Detects platform running the app
ScrollView, // Handles navigation between screens
StyleSheet, // CSS-like styles
View,
Text,
StatusBar
} from "react-native";
import { Button } from "native-base";
impo... |
export function checkBankingComparisonPage() {
cy.get('cx-fs-comparison-table-panel').should('be.visible');
cy.get('.fixed-column').should('have.length', 1);
cy.get('.primary-button')
.should('contain', 'Select')
.should('have.length', 3);
cy.get('a.link').should('contain', 'More Info').should('have.len... |
import {DomRender} from 'dom-render/DomRender';
import {ScriptUtils} from 'dom-render/utils/script/ScriptUtils';
import {Shield} from 'dom-render/types/Types';
import {RawSet} from 'dom-render/RawSet';
import {Profile} from './components/Profile';
import {FormValidator} from 'dom-render/validators/FormValidator';
impor... |
<reponame>baturinsky/Snake-vs-invaders<filename>src/Wing.ts
import Foe from "./Foe";
import Game from "./Game";
import { V2 } from "./v2";
import { randomElement } from "./Util";
type wingConf = {
rows: number;
cols: number;
kind: number;
complication?: number;
init: (
wing,
number
) => {
at: ... |
<gh_stars>0
/* Imports: External */
import path from 'path'
import fs from 'fs'
import mkdirp from 'mkdirp'
import { ethers, utils } from 'ethers'
import { task, subtask } from 'hardhat/config'
import * as types from 'hardhat/internal/core/params/argumentTypes'
import { HardhatRuntimeEnvironment } from 'hardhat/types'
... |
<gh_stars>0
import {Feature, FeatureMeta, FeatureType} from "./feature";
import {utils} from "./utils";
import {Manager} from "./manager";
import {log, debug} from "./log";
const announcePrefix = "announce/";
export declare type ValueCallback = (device: Device, feature: string|FeatureType, value: string) => any
expo... |
<gh_stars>0
import {
ATOM,
IAtom,
IComposedAtom,
IConfig,
ICssPropToToken,
IScreens,
ISheet,
IThemeAtom,
ITokensDefinition,
TCss,
} from "./types";
import {
createSheets,
cssPropToToken,
getVendorPrefixAndProps,
hashString,
specificityProps,
} from "./utils";
export * from "./types";
expo... |
import React, { Component, createRef } from 'react';
import { Animated, TouchableHighlight, TouchableOpacity, StyleSheet, Text, View, Platform, StatusBar, TextInput, FlatList, Image, Modal, Switch, AsyncStorage, Alert, AlertButton, ProgressBarAndroid, ColorPropType, VirtualizedList, Picker, Dimensions, ViewStyle, St... |
<gh_stars>0
import {GenLloyd} from "./gen-lloyd";
import {MedCut} from "./med-cut";
function getImage(src: string): Promise<HTMLImageElement> {
var image = new Image();
return new Promise((resolve, reject) => {
image.onload = () => resolve(image);
image.onerror = () => reject();
image.s... |
import { css } from '@emotion/css';
import React, { useEffect } from 'react';
import { GrafanaTheme, SelectableValue } from '@grafana/data';
import { config } from '@grafana/runtime';
import { Button, FilterInput, MultiSelect, RangeSlider, Select, stylesFactory, useTheme } from '@grafana/ui';
import {
createDatasour... |
import { Map } from 'immutable';
import { Dispatch } from 'react-redux';
import { State } from 'reducers';
import { parseUrl, stringifyUrlParams } from 'actions/utils/router';
import history from 'utils/history';
import * as models from 'data/models';
import { dismissScopedMessages } from './messages';
import { Scope }... |
<gh_stars>1-10
'use strict';
import * as fs from 'fs';
import * as path from 'path';
import * as events from 'events';
import * as vscode from 'vscode';
import * as rx from 'rx-lite';
import { /*workspace,*/ ExtensionContext } from 'vscode';
import { IllegalStateException } from '@js-joda/core';
//import Module = req... |
<filename>nbgrader/labextensions/validate_assignment/src/index.ts
import {
JupyterFrontEnd,
JupyterFrontEndPlugin
} from '@jupyterlab/application';
import {
IDisposable, DisposableDelegate
} from '@lumino/disposable';
import {
ToolbarButton, Dialog, showDialog
} from '@jupyterlab/apputils';
import {
Docume... |
import React, { useState } from 'react';
import {
View, Text, TextInput, ScrollView, Button, Picker
} from 'react-native';
import { database } from "../../storage/Database";
import { v4 as uuid } from 'uuid';
import styles from '../Style';
import { EventTypes } from '../../enums/EventTypes';
import LinearGradient ... |
<reponame>datagrok-ai/packages
import * as DG from "datagrok-api/dg";
import * as grok from "datagrok-api/grok";
import {delay, expect} from "@datagrok-libraries/utils/src/test";
import {_package} from "../package-test";
import { ClinicalDomains } from "../clinical-study";
import { createBaselineEndpointDataframe, crea... |
<filename>legacy/packages/soba/abstractions/src/lib/gizmo-helper/gizmo-viewcube.component.ts
import {
CanvasStore,
EnhancedComponentStore,
NgtCoreModule,
NgtEvent,
NgtRepeatModule,
NgtVector3,
} from '@angular-three/core';
import { NgtBoxGeometryModule } from '@angular-three/core/geometries';
import { NgtGr... |
import * as React from "react";
import Automation from "../../_helpers/automation-attribute";
import containerStyles from "../../_helpers/container-styles";
import Spinner from "../../atoms/spinner";
import styled, { css } from "../../styled";
import { colors, misc, spacing } from "../../tokens";
import TableColumn fr... |
import { Button, Input } from 'antd'
import React, { useState } from 'react'
import { useHistory } from 'react-router-dom'
import InfiniteScroll from 'react-infinite-scroll-component'
import styled from 'styled-components'
import { FooterCardMarketplaceLoading } from '../components/marketplace/FooterCardMarketplaceLoad... |
import { Component, OnInit, OnDestroy, ViewChild, HostListener, ElementRef } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { ipcRenderer } from 'electron';
import { SandboxComponent } from '../sandbox/sandbox.component';
import { CanvasObject } from '../sandbox/canvas/CanvasObject';
im... |
import React, { useContext, useEffect, useState } from "react";
// @ts-ignore
import { addresses } from "@f-wallet/contracts";
import { ThemeContext } from "styled-components";
import {
calculateDelegationApr,
canLockDelegation,
getAccountDelegations,
getAccountDelegationSummary,
getValidators,
getValidator... |
import {Comment} from '../../../../models/api/Comment';
import {CommentThread, CreateCommentThread} from '../../../../models/api/CommentThread';
import {Course, CoursePartial} from '../../../../models/api/Course';
import {CourseUser} from '../../../../models/api/CourseUser';
import {File as APIFile} from '../../../../m... |
/**
* 地理相关工具函数
*/
const PI = 3.14159265358979324
const X_PI = (3.14159265358979324 * 3000.0) / 180.0
/**
* 坐标类型
*/
export type CoordType = 'WGS84' | 'GCJ02' | 'BD09'
/**
* 坐标对象
*/
export interface Coord {
latitude: number
longitude: number
coordType?: CoordType
}
function delta({ latitude, longitude }: ... |
/**
* ui/factory-instructions.ts
* React component for rendering a factory instruction
* lgfrbcsgo & Nikolaus - October 2020
*/
import * as React from "react"
import {
FactoryGraph,
FactoryNode,
ContainerNode,
TransferContainerNode,
isContainerNode,
isIndustryNode,
isTransferNode,
i... |
import { ChoiceTraverser, EntryPointTraverser, GrammarParsingLeafState, GrammarParsingLeafStateCommon, GrammarParsingLeafStateReduces, GrammarParsingLeafStateTransitions, IncVariator, LinearTraversion, ParseTable, PRule, PValueNode, RefTraverser, RTStackShiftItem, RuleElementTraverser, RuleRefTraverser, TerminalRefTrav... |
import { existsSync, readFile } from "fs";
import { promisify } from "util";
import { EventEmitter, languages, TextDocumentContentProvider, Uri, window, workspace } from "vscode";
import * as nls from "vscode-nls";
import { transformAsync, traverse } from "@babel/core";
import { isArrayExpression, isIdentifier, isObje... |
import {
computed,
HTMLAttributes,
onMounted,
reactive,
Ref,
ref,
SetupContext,
VNodeProps,
watch,
} from 'vue';
import { vueJsxCompat } from '../../vue-jsx-compat';
import { MovePosition } from '../../uses/use-move';
import { Color, ColorFormat } from './color';
import { Trigger } from './parts/Trigg... |
import { OccupiedSpace } from "constants/CanvasEditorConstants";
import { GridDefaults } from "constants/WidgetConstants";
import { isEmpty } from "lodash";
import {
CollidingSpace,
CollidingSpaceMap,
CollisionAccessors,
CollisionTree,
Delta,
DirectionalMovement,
GridProps,
HORIZONTAL_RESIZE_LIMIT,
Re... |
<filename>apps/ecommerce-storefront-b2b/src/app/shop/page-checkout/page-checkout.component.ts<gh_stars>0
import {Component, Inject, OnDestroy, OnInit} from '@angular/core';
import { FormControl, FormGroup, Validators } from '@angular/forms';
import { Router } from '@angular/router';
import { DOCUMENT } from "@angular/c... |
import { useSocketStore } from "@/store/Socket"
import SocketService from "@/services/socket"
import {
PlayerData,
Game,
PlayerState,
CardColors,
Chat,
CardData,
JoinGameEventInput,
JoinGameEventResponse,
BuyCardEventInput,
PutCardEventInput,
SendChatMessageEventInput,
ChangePlayerStatusEventInput,
Toggle... |
import {
TrimmedDataNode,
Imported,
ProcessedImportState,
TreemapNode,
GraphEdges,
FlattendGraph,
ProcessedBundle,
BundledFile,
// TrimmedNetwork,
// BundleNetworkCount,
} from "../types";
import {
requiredBy,
calculateTransitiveRequires,
edgesToGraph,
} from "../graph";
import { findDuplicate... |
/**
* 生成一个用于替换类名的翻译内容
*
* @param selector 要替换的 html 元素的选择器
* @param oldClass 要替换的旧类名
* @param newClass 要替换成的新类名
*/
const changeElementClassName = function (selector: string, oldClass: string, newClass: string): TranslationContent {
return {
selector,
'zh-CN': (el: HTMLElement) => {
... |
import React, { useEffect, useState } from "react";
import DateTimePickerModal from "react-native-modal-datetime-picker";
import { Field, Formik } from "formik";
import * as Yup from "yup";
import { StatusBar } from "expo-status-bar";
import {
Box,
Flex,
Heading,
ScrollView,
VStack,
FormControl... |
/* eslint-disable max-depth */
/* eslint-disable zardoy-config/unicorn/prefer-regexp-test */
import path, { join } from 'path'
import fsExtra from 'fs-extra'
import ini from 'ini'
import _ from 'lodash'
import { extensionCtx, getExtensionSetting } from 'vscode-framework'
import { getAllGithubRepos } from '../auth'
impo... |
import {
AggregateType,
getData,
Operator,
Order,
dimensions,
measures,
} from '@alife/mock-core';
import {
atom,
atomFamily,
compute,
computeFamily,
DefaultValue,
distinctUntilChanged,
} from '@alife/rdx';
import React from 'react';
import { DomainName, DomainType, Field } from './type';
// 数... |
import _ from 'lodash';
import { AccessibleChart, ChartBuilder, IPlotlyProperty, PlotlyMode, SelectionContext } from 'mlchartlib';
import {
getTheme,
Text,
Dropdown,
IDropdownOption,
IDropdownStyles,
Modal,
IIconProps,
Icon,
} from 'office-ui-fabric-react';
import { ActionButton, Primary... |
import React, { useRef, useEffect, useState, useCallback } from "react";
import classNames from "classnames";
import { PullRefreshProps } from "./interface";
import LoadingSvg from "../assets/loading.svg";
import { useMount } from "utils-hooks";
import "./tools";
import { getScrollPosition } from "./tools";
import Circ... |
import { MonitorElement, MonitorData, ResolutionElement } from "src/daa-server/utils/daa-server";
export const color = {
RECOVERY: "#07dc0a", // DASHED green
FAR: "#ffc107", // DASHED YELLOW
MID: "#ffc107", // yellow "#ffbf00",
NEAR: "red",
UNKNOWN: "gray",
NONE: "transparent"
};
export const b... |
<reponame>Mitjan11/simplicate-app
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {map, tap, filter, mergeMap} from 'rxjs/operators';
import {HourModel} from '../domain/hour.model';
import {NEVER, Observable, of, Subject, interval} from 'rxjs';
... |
import { Expression, Search, Hits, Filter } from 'arlas-api';
import { Observable } from 'rxjs';
import { ElementIdentifier } from 'models/models';
import { projType } from 'arlas-web-core';
import { getElementFromJsonObject } from './utils';
import bbox from '@turf/bbox';
import { CollaborativesearchService } from 'ar... |
<reponame>abbeymart/mccrudmg-ts<filename>src/SaveRecord.ts
/**
* @Author: abbeymart | <NAME> | @Created: 2020-07-24
* @Company: Copyright 2020 <NAME> | mConnect.biz
* @License: All Rights Reserved | LICENSE.md
* @Description: mc-central-ts: save-record(s) (create/insert and update record(s))
*/
// Import require... |
<gh_stars>1-10
/**
* @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
*/
/**
* @fileoverview
* @suppress {globalThis}
*/
import * as webSocketPatch from './websocket';
exp... |
<gh_stars>1-10
import {PolymerElement, html} from '@polymer/polymer';
import '@polymer/iron-flex-layout/iron-flex-layout-classes.js';
import '@polymer/paper-input/paper-input.js';
import '@polymer/paper-button/paper-button.js';
import '@polymer/paper-styles/element-styles/paper-material-styles.js';
import '@unicef-poly... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2013 <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 rights
* to use, copy,... |
import * as React from 'react'
import injectSheet from 'react-jss'
import Boundaries from "../../components/Boundaries/Boundaries";
import Stroke from "../../components/Page/Stroke";
import classNames from 'classnames';
import { MdStar } from 'react-icons/md';
import Section from "../../components/Section/Section";
imp... |
<filename>service/connext.ts
import { ethers, providers } from "ethers";
import { AddressZero } from "@ethersproject/constants";
import { Contract } from "@ethersproject/contracts";
import { BrowserNode } from "@connext/vector-browser-node";
import { TestToken } from "@connext/vector-contracts";
import {
DEFAULT_CHAN... |
import React, { Suspense } from 'react';
import SharedElement from './SharedElement';
import { RouterDataContext } from './RouterData';
import { AnimationConfig, AnimationConfigFactory, AnimationConfigSet, AnimationKeyframeEffectConfig, ReducedAnimationConfigSet, SwipeDirection } from './common/types';
import {Vec2} fr... |
import path from 'path'
import fs from 'fs'
import Client from './Client'
import { PackageManager, IPackage, PROCESS_STATES, FetchOptions } from 'ethpkg'
import { uuid, resolveRuntimeDependency } from '../util'
import { IRelease } from 'ethpkg'
import { PROCESS_EVENTS } from '../ProcessEvents'
import { StateListener } ... |
import { IterableHunspellReader } from './IterableHunspellReader';
import * as Aff from './aff';
import * as AffReader from './affReader';
import { genSequence } from 'gensequence';
import * as fs from 'fs-extra';
import * as path from 'path';
const DICTIONARY_LOCATIONS = path.join(__dirname, '..', 'dictionaries');
d... |
import { useRouter } from 'next/router';
import dynamic from 'next/dynamic';
import { useEffect, useState, useRef } from 'react';
import { Container, Row, Col } from 'react-bootstrap';
import { ToastContainer, toast } from 'react-toastify';
import usePyodideStore from 'stores/pyodide';
import Layout from 'components/La... |
<filename>src/rules/strictBooleanExpressionsRule.ts
/**
* @license
* Copyright 2016 Palantir Technologies, 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.apac... |
/*!
* Travis CI Client Library Unit Tests: TravisClient
*
* Copyright (c) 2018, <EMAIL> <<EMAIL>>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copie... |
import * as _ from 'lodash';
import { ILogPullerEvent } from './log-puller';
import { fetchUserFromPortal } from './fetch-user-from-portal';
import { fetchModuleFromLara } from './fetch-module-from-lara';
import { eventDateCompare, asyncForEach, isBlank, warn } from './utilities';
import { IReportData, IEvent, ISessio... |
import {
Node,
NodeTypes,
Statement,
BodyStatement,
RuleStatement,
IncludeStatement,
MixinStatement,
IfStatement,
EachStatement,
FunctionStatement,
ReturnStatement,
TextNode,
createTextNode,
createEmptyNode,
createSelectorNode,
Atrule,
MediaStatement,
... |
import * as React from "react";
import {RouteComponentProps, withRouter} from "react-router";
import {FormattedMessage, useIntl} from "react-intl";
import {useSelector, useDispatch} from "react-redux";
import {Innholdstittel} from "nav-frontend-typografi";
import {useEffect} from "react";
import Stegindikator from "nav... |
<reponame>corbanbrook/sequence.js
import { editConfig, genConfig, SequenceUtilsFinder, WalletConfig } from "@0xsequence/config"
import { ETHAuth, Proof } from "@0xsequence/ethauth"
import { NetworkConfig, WalletContext, getAuthNetwork, findNetworkConfig } from "@0xsequence/network"
import { Account } from "@0xsequence/... |
<reponame>Wikia/ad-engine
import {
AdSlot,
context,
events,
eventService,
SlotFiller,
slotService,
Targeting,
templateService,
utils,
} from '@ad-engine/core';
import { PorvataFactory } from './porvata-factory';
import { PorvataListener } from './porvata-listener';
import { PorvataPlayer } from './porvata-play... |
import * as React from 'react';
import clsx from 'clsx';
import { useLatest } from '@react-next-calendar/hooks';
import EventWrapper from './EventWrapper';
import EventContainerWrapper from './EventContainerWrapper';
import WeekWrapper from './WeekWrapper';
import { mergeComponents } from './common';
interface Intera... |
<filename>game/Compactor.ts
import {DECK, ICard} from './Card'
import {IDesk} from './Desk'
import {createNewGame, executeMove, IGame, INewGameRules, undoLastMove} from './Game'
import {Move, MoveType} from './Move'
import {ITableau} from './Tableau'
import {lastItem, lastItemOrNull} from './util'
export type CompactC... |
<reponame>qlonik-forks/matechs-effect-legacy
import * as T from "../Effect"
import * as F from "../Function"
import { pipe } from "../Function"
import * as L from "../Layer"
import * as M from "../Managed"
export type Patched<A, B> = B extends F.FunctionN<
infer ARG,
T.Effect<infer S, infer R, infer E, infer RET>
... |
import { MathUtils, PropertyBinding } from "..";
/**
*
* A group of objects that receives a shared animation state.
*
* Usage:
*
* - Add objects you would otherwise pass as 'root' to the
* constructor or the .clipAction method of AnimationMixer.
*
* - Instead pass this object as 'root'.
*
* - You can ... |
<reponame>wcoei/tiengow-js
import CombintationTypes from "./combinationType";
import ct from "./combinationType";
export interface combinationDetail {
code: string;
type: ct;
rank: number;
}
const combinations: combinationDetail[] = [
//SingleCivil
{ code: "HEAVEN1", type: ct.SingleCivil, rank: 0 },
{ cod... |
import * as React from "react";
import * as ReactDom from "react-dom";
import { Version, DisplayMode } from "@microsoft/sp-core-library";
import {
IPropertyPaneConfiguration,
PropertyPaneTextField,
PropertyPaneDropdown,
IPropertyPaneDropdownOption,
IPropertyPaneField,
IPropertyPaneGroup,
PropertyPaneLabel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.