text
stringlengths
3.08k
15.5k
/** * @file Utility functions for writing E2E tests. */ import { print, getInventory, getCloset, toItem, getStash, displayAmount, getShop, xpath, visitUrl, } from 'kolmafia'; /** * Prints an error message to the gCLI. * @param message Message to print */ export function error(message: string) {...
import { Reader, Writer } from 'protobufjs/minimal'; import { Counterparty, Version } from './connection'; import { Any } from '../../../../google/protobuf/any'; import { Height } from '../../client/v1/client'; export declare const protobufPackage = "ibc.core.connection.v1"; /** * MsgConnectionOpenInit defines the msg...
import * as React from 'react'; import { Table, Button, notification, Icon, Input } from 'antd'; import { connect } from 'react-redux'; import { productListReq, Product } from '../redux/actions/productList'; import { AppState } from '../redux/reducers'; import axios from '../util/axios'; import { withRouter, RouteCompo...
<filename>frontend/src/app/benchmarking-result-table/benchmarking-result-table.component.ts import { BenchmarkingResultService } from './../services/benchmarking-result.service'; import { BenchmarkService } from './../services/benchmark.service'; import { BenchmarkGroup } from './../classes/benchmark-group'; import { S...
import * as yoga from 'yoga-layout' import { remove } from './utils' // base node with layout and children // - appendChild/insertBefore/removeChild/update() is needed for all react "instances" // - and we need yogaNode and write() for anything what can be root abstract class Base<T> { yogaNode = yoga.Node.create() ...
<filename>src/index.ts import commonjs from '@rollup/plugin-commonjs' import resolve from '@rollup/plugin-node-resolve' import * as path from 'path' import { Plugin, rollup, RollupOptions, SourceDescription, } from 'rollup' import { createFilter } from 'rollup-pluginutils' import generateCode from './generateCo...
import { Callable, isDefined } from "@renproject/utils"; import axios from "axios"; import https from "https"; import { fixUTXO, fixValue, sortUTXOs, UTXO, DEFAULT_TIMEOUT, BitcoinAPI, } from "./API"; export class InsightClass implements BitcoinAPI { public url: string; constructor(ur...
import React, { useState, useEffect, useContext } from "react"; import Web3 from "web3"; import useTokens from "../utils/useTokens"; // Types import { ConnectionContextValues } from "./types"; // Contracts import TestTokenA from "../build/TestTokenA.json"; import TestTokenB from "../build/TestTokenB.json"; import Token...
/* Copyright 2015 <NAME> L.P. * * 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 ...
import React, { forwardRef, useEffect, useImperativeHandle, useState, ForwardRefRenderFunction, } from 'react'; import styled from 'styled-components'; import { CloseOutlined } from '@ant-design/icons'; import { Drawer, Row, Button } from 'antd'; import buildFormSchemaFromJobDef from 'shared/formSchema'; impo...
import { clamp, lerp, inverseLerp } from './math-util'; export type Gradient = { stop: number; color: [number, number, number]; }[]; export const HEATED_METAL_GRADIENT: Gradient = [ { stop: 0, color: [0, 0, 0] }, { stop: 0.3, color: [128, 0, 128] }, { stop: 0.65, color: [255, 0, 0] }, { stop: ...
<gh_stars>10-100 // Copyright 2017-2021 @polkadot/api-derive authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { Observable } from 'rxjs'; import type { ApiInterfaceRx } from '@polkadot/api/types'; import type { Option } from '@polkadot/types'; import type { AccountId, EraIndex, Exposure,...
import { useInput } from "ink"; import { useRecoilState, useRecoilValue } from "recoil"; import { highlightedAreaState, cardAreaState, selectedCardState, highlightedCardState, cardStackState, } from "./state"; import { getStackFromTableau, getTopTableauCardIndex, cyclePosition, cardHasFaceUpCardsBelow...
import '@reshuffle/code-transform/macro'; import React, { FC, useState, useEffect, useLayoutEffect, useCallback, } from 'react'; import { useDropzone } from 'react-dropzone'; import clsx from 'clsx'; import ReactCrop, { Crop } from 'react-image-crop'; import { useFileUpload } from '@reshuffle/react-storage'; ...
<filename>src/helpers/upgrade/executableHelpers.ts import * as fs from 'fs'; import * as path from 'path'; import * as log from 'loglevel'; import { NativefierOptions } from '../../options/model'; import { getVersionString } from './rceditGet'; import { fileExists } from '../fsHelpers'; type ExecutableInfo = { arch...
import * as React from 'react'; import { Form, FormGroup, Alert } from '@patternfly/react-core'; import { DesktopViewer } from '@patternfly/react-console'; import { Dropdown } from '@console/internal/components/utils'; import { getName } from '@console/shared'; import { DEFAULT_RDP_PORT, TEMPLATE_VM_NAME_LABEL, Network...
import {ContentSummaryDTO, IsaacQuizDTO, QuizFeedbackMode} from "../../../../IsaacApiTypes"; import {AppGroup} from "../../../../IsaacAppTypes"; import {AppDispatch} from "../../../state/store"; import {useDispatch} from "react-redux"; import React, {useState} from "react"; import {Item, unwrapValue} from "../../../ser...
import { injectable, inject } from 'inversify'; import { AppTemplatePanelWidget } from './index'; import { AbstractViewContribution, FrontendApplicationContribution, FrontendApplication, Widget, } from '@theia/core/lib/browser'; import { Command, CommandRegistry } from '@theia/core/lib/common/command'; import {...
// const { db } = require('./index') // const functions = require('firebase-functions') const admin = require('firebase-admin') const firebaseHelper = require('firebase-functions-helper/dist') const request = require('request-promise') require('dotenv').config() const app = (module.exports = require('express')()) a...
/** * @file 移动端人员、部门、角色、岗位选择 * @author fex */ import React from 'react'; import {themeable, ThemeProps} from '../theme'; import {LocaleProps, localeable} from '../locale'; import {ResultBox} from '../components'; import UserSelect from './UserSelect'; import {Option} from '../renderers/Form/Options'; import Sortabl...
<gh_stars>1-10 /* * Copyright 2019 <NAME> <<EMAIL>> * Copyright 2019 Institute of the Czech National Corpus, * Faculty of Arts, Charles University * * 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...
/** * dataTable_HeaderRowEntry_SortIcon_InContainer.tsx * * Sort Icon for Table Entry in Header Row */ import React from 'react' import { SORT_DIRECTION_ASCENDING, SORT_DIRECTION_DECENDING } from './dataTable_constants'; import { tooltip_Limelight_Create_Tooltip, Tooltip_Limelight_Created_Tooltip } from "page_j...
import React, { useContext } from "react" import { Placement } from "../../types" import { modesShort } from "../../utils/lists" import { Accordion, AccordionItem, AccordionHeader, AccordionIcon, AccordionPanel, Flex, Icon, Box, Grid, } from "@chakra-ui/core" import MyThemeContext from "../../themeCon...
<filename>src/collision/phase/narrowphase/Distance.ts import { Shape } from '../../../body/shapes/Shape'; import { Vector } from '../../../math/Vector'; import { Vertex } from '../../../math/Vertex'; import { Settings } from '../../../Settings'; const INIT_DIR: Vector = new Vector(1, 0); const temp1 = new Vector(); co...
<filename>src/app/ui/shared/max-distance-field.component.ts import { ChangeDetectionStrategy, Component, Host, HostBinding, Injector, Input, OnInit, Optional, SkipSelf, ViewChild } from '@angular/core'; import { ControlContainer, FormBuilder, FormControl, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms'; import...
<filename>src/state.ts<gh_stars>0 import { clone } from "./util"; import { getWordIndexFromTimeMS } from "./word"; export interface OrdleState { board: BoardState; loadingState: LoadingState; gameState: GameState; responseText: string | null; todaysWord: string | null; shareString: string; } export enum L...
import { BigNumber } from '@waves/data-entities'; import { path } from 'ramda'; import { parseTransactionBytes } from '@waves/signature-generator'; import { IExchangeTransactionOrder, TTransaction, IDataTransaction, IMassTransferTransaction } from '@waves/ts-types'; export function find<T>(some: Parti...
import path from 'path'; import bytes from 'bytes'; import {CleanWebpackPlugin} from 'clean-webpack-plugin'; import CopyWebpackPlugin from 'copy-webpack-plugin'; import FaviconsWebpackPlugin from 'favicons-webpack-plugin'; import FriendlyErrorsWebpackPlugin from 'friendly-errors-webpack-plugin'; import HtmlWebpackPlug...
/** * @file Color 颜色转化和处理 */ import {HSL2RGB, IHSL, IHSLA, IRGB, IRGBA, ISL, RGB2HEX, RGB2HSL, RGBA2HEX, string2RGB, parseColorStr} from '../util'; export interface IColorInfoOptions { hasAlpha?: boolean; format?: 'rgb' | 'hex' | 'hsl'; } export class Color { // 字符串 -> color对象 public static fromEm...
import React, { useMemo, useEffect, useContext } from 'react'; import { getDate, getMonth, getYear } from 'date-fns'; import { useForm } from 'react-hook-form'; import { ipcRenderer, IpcRendererEvent } from 'electron'; import { useHistory } from 'react-router-dom'; import styled from 'styled-components'; import { CATE...
<gh_stars>1-10 import { GamePlayer, PLAYER_CONFIG, getGameDimensions, World, HUD_HEIGHT, Rectangle, } from '../server/game' import { images } from './assets' import { getId } from './api' import { stats } from './stats' let debugMode = false window.addEventListener('keydown', (event) => { i...
<gh_stars>1-10 import { Athena } from 'aws-sdk' import { exponential, Backoff } from 'backoff' type logFn = (...args: any) => void const noLog = () => undefined const queryExecutionInfo = ({ QueryExecutionId, athena, debugLog, errorLog, }: { debugLog: logFn errorLog: logFn QueryExecutionId: string athena: Ath...
import { Manifest } from 'vite' import { wrapManifest } from './manifest.js' import { readFile, toRoot, readJson, writeFile } from './util.js' import { minify } from 'html-minifier-terser' import chalk from 'chalk' import { sync } from 'brotli-size' import { getConfig } from './config.js' import { Feed } from '../types...
import * as utils from '../utils/utils'; import { ChartConfig, ChartDimensionsMap, UnitGuide, Unit } from '../definitions'; interface XChartConfig extends ChartConfig { colorGuide?: Object; obsoleteVerticalStackOrder?: boolean; sizeGuide?: Object; } interface ValidatedConfig { status: ...
import React, { useContext } from 'react'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/DialogContentText'; import DialogTitle from '@material-ui/core/DialogTitl...
import React, { useContext, useEffect, useState } from 'react' import { useMutation, useQuery } from '@apollo/client' import { checkoutQuery } from '@sdk/queries/checkout' import Button from '@material-ui/core/Button' import { checkoutCompleteMutation } from '@sdk/mutations/checkout' import { getOrderUrl, ordersUrl } f...
<filename>src/predicate.ts import {isArray, isString} from 'vega-util'; import {DataFlowNode} from './compile/data/dataflow'; import {Model} from './compile/model'; import {selectionPredicate} from './compile/selection/selection'; import {DateTime, dateTimeExpr, isDateTime} from './datetime'; import {vgField} from './f...
<filename>src/services/maps-manager.ts /** * Created by mjaric on 9/28/16. */ import { Injectable } from '@angular/core'; import { LazyMapsApiLoader } from '../loaders/lazy-maps-api-loader'; import { MarkerOptions } from '../interface/marker-options'; import { LatLng, LatLon, GeoPoint } from '../interface/lat-lng'; i...
import Container from "../container/container"; import OverlayManager from "./overlay_manager"; import { CssSize } from "../common/types"; import { Result, ActionType, Parcel } from "../common/dto"; import ResizableOverlay from "./resizable_overlay"; import { ShowOptions } from "./overlay"; import ModuleLoader from ".....
<gh_stars>0 import { AzureMonitorPluginQuery } from './../AzureMonitorPluginQuery'; import { AzureConnection } from '../azure_connection/AzureConnection'; import { AzureSubscription } from '../azure_subscription/AzureSubscription'; import { KustoResponseParser } from '../utils/KustoResponseParser'; import { getResultsA...
import L from 'leaflet'; import { IReactionDisposer } from 'mobx'; import { inject, observer } from 'mobx-react'; import React, { Component } from 'react'; import constants from '~/constants/constants'; import TransitType from '~/enums/transitType'; import EventListener, { INodeClickParams } from '~/helpers/EventListen...
<reponame>kalessine/sdmx-typescript /* This file is part of sdmx-js. sdmx-js is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later vers...
/* * Copyright 2022 The Backstage 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 ...
const fs = require('fs'); const packageJSON = require('../package.json') const intersperse = require('intersperse'); const { get, includes } = require('lodash'); const React = require('react'); const ReactDOMServer = require('react-dom/server'); const marked = require('marked'); function Markdown(props: { inline?: b...
<reponame>noih/app-store-server-api export enum Environment { Production = "Production", Sandbox = "Sandbox" } // https://developer.apple.com/documentation/appstoreserverapi/historyresponse export interface HistoryResponse { appAppleId: string bundleId: string environment: Environment hasMore: boolean re...
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "./utilities"; /** * **Scopes**: Security configuration; contract; group * ...
import InputState from "./InputState"; // This module is written for and tested with the X-Box 360 controller. // See https://en.wikipedia.org/wiki/Xbox_360_controller for details. // Old controllers might be a bit wobbly and need a higher value. const INPUT_THRESHOLD = 0.15; const PI_OVER_8 = Math.PI / 8; const PI_...
import { Color } from '@antv/color-schema'; import { colorToArray } from '../../../utils'; import { LAB_TO_COOLNESS } from './LAB_TO_COOLNESS'; // ref: Colorgorical:Creating discriminable and preferable color palettes for information visualization // https://github.com/connorgr/colorgorical/blob/90649656a57ce9743b0039...
/** ! * Copyright (c) 2020, <NAME> * * @author <NAME> (https://matt-dunn.github.io/) * @licence MIT */ import { AnyDOMElement, AnyNode, BaseProps, Children, DOMElement, NamespaceURI, Node, NODE_TYPE_FRAGMENT, NodeType, Props, } from "./types"; import { getElementNamespaceURI, isNode } from "./...
import { Component, OnInit } from '@angular/core'; import { ComponentPortal } from '@angular/cdk/portal'; import { CardtemplateComponent } from '../cardtemplate/cardtemplate.component'; import { PortalModule } from '@angular/cdk/portal'; import { Router } from '@angular/router'; import { SendService } from '../_service...
<gh_stars>1-10 import { getSolution, getWordleNumber } from './get-solution'; import { words, notWords } from './words'; import { baseUrl } from './constants'; const allWords = new Set(words); const numberOfTries = 6; const wordLength = 5; type Cell = { type: 'unset' | 'absent' | 'present' | 'correct'; letter: st...
import { IWidgetControlProps, SchemaContainer, StateManagerContext, WidgetsFactory, withReducer } from "@itsy-ui/core"; import { IPopupStateProps, IPopupStateTransitionProps } from "./common"; import * as React from "react"; import { isFunction, getlocaleText } from "@itsy-ui/utils"; import "./locale"; const Actions =...
import { driver, By, Builder, WebDriver, WebElement } from "mocha-webdriver"; import { expect } from "chai"; import * as Faker from "faker"; const host: string = `http://localhost:3000`; const delayWaitTimeout: number = 200; const elementWaitTimeout: number = 10000; const logIn = async function (driver: WebDriver, us...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. * * Any modifications Copyright OpenSearch Contributors. See * GitHub history for details. */ /* * Licensed to Ela...
import { clearErrorObject, createListValidator, createValidator, ErrorObject, maxLength, msg, required, validate } from '../' describe('createValidator', () => { it('should create a function that returns an error object containing messages for the invalid attributes', () => { const validator = createVa...
<reponame>kirinnee/CyanPrint import path from 'path'; import {Group} from "./classLibrary/Group"; import {Core, Kore} from "@kirinnee/core"; import {ObjectX, Objex} from "@kirinnee/objex"; import {Utility} from "./classLibrary/Utility"; import chalk from "chalk"; import {AutoMapper} from "./classLibrary/TargetUtil/Auto...
import { AddressPrefix } from '@nervosnetwork/ckb-sdk-utils' import { AccountExtendedPublicKey } from 'models/keys/key' import Address, { AddressType } from 'models/keys/address' import LockUtils from 'models/lock-utils' import AddressDao, { Address as AddressInterface, AddressVersion } from 'database/address/address-d...
import TextCellTransformer from "./text-cell-transformer"; import { luckysheetfontformat } from "../utils/util"; import { Cell, HorizontalType, RenderTextCell, RenderTextCellValue, TextBreak, UnderlineType, VerticalType } from "../typings"; import { getCancelLine, getMeasureText, getUnderLine, TextDecorateParams } f...
import QRCode from "easyqrcodejs-nodejs"; import Web3 from "web3"; import axios from "axios"; const web3 = new Web3(); // ronin or etherscan const mainnet = 'ronin'; const reqConfig = { headers: { "user-agent": 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4...
import { Client, Message } from 'discord.js'; import { database } from '../utils/databaseFunctions'; import { embed } from '../utils/embed'; import { emojis } from '../utils/emojis'; import { utils } from '../utils/utils'; export const run = async (message: Message, client: Client, args: string[]): Promise<Message | v...
<gh_stars>100-1000 /** * Structure for building a DatabaseQuery * @property {string} predicate The predicate clause. ex: orderByChild(predicate) * @property {string} value The value for comparison orderByChild(predicate).equalTo(value) */ export interface QueryPredicate { predicate: string; value: string; } /*...
import { ChangeDetectorRef, Component, ElementRef, Input, OnChanges, OnDestroy, QueryList, SimpleChanges, ViewChildren } from "@angular/core"; import { forceCollide, forceSimulation, Simulation, SimulationNodeDatum } from "d3-force"; import { select } from "d3-selection"; import each from "lodash/each"; import isEqual ...
import Vue from "vue" import App from "./App.vue" import router from "./router.ts" import msgpack from "msgpack-lite/lib/browser.js" import Toasted from "vue-toasted" import {hexEncode} from "./hex-encode" import "./style.css" import "dynamic-tabs/dist/tabs.css" import "dynamic-textfields/textfields.css" import "@ma...
import { Either, Guard, IGuardArgument, left, Result, right, } from "../../../shared/core"; import { AggregateRoot, UniqueEntityID } from "../../../shared/domain"; import { AuthorId } from "../../author/domain"; import { Comment, Comments } from "../../comments/domain"; import { CommentPosted } from "../../commen...
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@ma...
<filename>src/swipl/lib/util.ts<gh_stars>0 import { NewType, unwrap, wrap, Tuple } from "../../util" import { AtomPtr, CharBufferFlags, OperationResult, PredicatePtr, Prolog, Ptr, TermRef, } from "./swipl" export const getI32Value = (ptr: number) => Module.HEAP32[ptr / 4]! export const getF...
import React, { useState } from 'react'; import { ScrollableContainer, ShellBody, ShellFooter, ShellHeader, ShellMain, ShellSidebar, } from '../src'; const Wrapper = ({ borderColor, children, noOutline, noHorizontalScrollbar, }: { borderColor: string; children: React.ReactNode; noOutline?: bo...
<filename>src/client/main/backing/backing.component.ts import * as _ from 'lodash'; import { Component, HostListener, OnDestroy, OnInit } from '@angular/core'; import { Subscription } from 'rxjs/Subscription'; import { beatTickFrom } from '../../common/core/beat-tick.model'; import { TransportService } from '../../co...
<filename>packages/cafeteria/app/scripts/view/listviews-sample/page-expand-listview.ts import { toZeroPadding } from "cdp/tools"; import { IPromise, makePromise, PromiseManager, PageExpandableListView, ShowEventData, HideEventData, registerPage, ScrollerNative, GroupProfile, Toa...
<reponame>payfunc/servly<filename>Response/Header.ts<gh_stars>0 export interface Header { accessControlAllowOrigin?: string | string[] | number accessControlAllowCredentials?: string | string[] | number accessControlExposeHeaders?: string | string[] | number accessControlMaxAge?: string | string[] | number accessC...
<reponame>akejolin/team export const monthNumber = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'] export const HALF_DAYS = [ { name: 'Trettondagsafton', date: '2018-01-05' }, { name: 'Skärtorsdag', date: '2018-03-29' }, { name: 'Valborg', date: '2018-04-30' }, { name: 'Kristeh...
import InteropService_Exporter_Md from './InteropService_Exporter_Md'; import BaseModel from '../../BaseModel'; import Note from '../../models/Note'; import NoteTag from '../../models/NoteTag'; import Tag from '../../models/Tag'; import time from '../../time'; import { NoteEntity } from '../database/types'; import { Md...
interface ISuccessResponse<T = void> { success: boolean; message: string; value: T; } export abstract class NoteBox { protected readonly boardId: string; protected readonly noteDiv: HTMLDivElement; protected constructor(boardId: string, noteDiv: HTMLDivElement) { this.boardId = boardI...
import * as fs from 'node:fs'; import got from 'got'; import * as path from 'node:path'; import commandExists from 'command-exists'; import cli from 'cli-ux'; import * as chalk from 'chalk'; import Debug from 'debug'; const debug = Debug('vdownloader'); const { platform } = process; // eslint-disable-next-line impor...
<reponame>dh4rry/vscode_abap_remote_fs import * as vscode from 'vscode'; import { ADTClient } from "abap-adt-api" /** * Manages cat coding webview panels */ export class QueryPanel { /** * Track the currently panel. Only allow a single panel to exist at a time. */ public static currentPanel: QueryPa...
import { Translations } from '.'; const translations: Translations = { AccommodationOnboardingView: { title: 'Majoituksen sisäänkirjaus', }, Common: { ok: 'OK', cancel: 'Peruuta', submit: 'Lähetä', search: 'Haku', somethingWentWrong: 'Jokin meni pieleen. JavaScript-konsolissa voi olla lis...
import { Epsg, GoogleTms, TileMatrixSets } from '@basemaps/geo'; import { FileConfig, FileConfigPath, fsa } from '@basemaps/shared'; import { CommandLineAction, CommandLineFlagParameter, CommandLineIntegerParameter, CommandLineStringParameter, } from '@rushstack/ts-command-line'; import { JobCreationContext } f...
import React, { useEffect, useState } from 'react'; import { makeStyles, Theme, createStyles, Grid, Typography, Fab, CircularProgress, IconButton } from '@material-ui/core'; import { GraphQLStore } from 'Base/GraphQL/GraphQLStore'; import {observer} from 'mobx-react'; import {GQLList} from './GQLList'; import { print, ...
<reponame>poelstra/ezwave /** * Packet debug utilities. */ import { inspect } from "util"; import { Packet } from "./packet"; import * as jsonSpec from "./jsonSpec"; import { CommandsByClassByVersion } from "./spec"; import { convertFromJsonCommandClasses } from "./specHelpers"; import { CommandClassPacket, CommandP...
import React from 'react' import { Layout, Breadcrumb, Progress, Typography, Card, Row, Col, Divider } from 'antd' import { green, blue, geekblue, yellow, red, purple, gold } from '@ant-design/colors' import { HomeFilled, CodeFilled, UserAddOutlined, GlobalOutlined } from '@ant-design/icons' import { Link } from '@reac...
<reponame>ablestack/reactive-domain-objects /* eslint-disable @typescript-eslint/interface-name-prefix */ import { IGlobalNodeOptions, INodeSyncOptions } from '.'; import { IMakeCollectionKey, IMakeRdoElement, isIMakeCollectionKey, isIMakeRdoElement, ISyncableRDOKeyBasedCollection } from './rdo-collection-types'; exp...
/*! * ©<EMAIL> * author: teamwei * date: 2021-08-05 */ import { CompatVue, Component } from "vue"; //表单验证规则 const validateRules: { [key: string]: { reg: RegExp; message: string } } = { required: { reg: /\S/, message: "必填项不能为空", }, password: { reg: /^(?![0-9]+$)(?![a-z]+$)(?![A...
import { LayoutStyle, BackgroundStyle, EffectStyle, StrokeStyle, ParagraphMarkup, Markup, ParagraphParamMarkup, Nodes, LayoutParamStyle, byTextFontStyle, divMarkup, byHashMarkup, vectorMarkup, markup, NodeParamMarkup, Style, ItemNode, ComponentMap, } from '../../core'; const fs = req...
<reponame>LimHaksu/hanyang-crm import { insert, select, update, deleteQuery, Customer } from "./db"; import { getSnakeCaseString, changePropertyFromSnakeToCamel } from "util/db"; import { Customer as CustomerType, SearchBy, OrderByCustomer } from "module/customer"; interface OrderForCustomer { idx: number; ord...
/* tslint:disable:no-unused-variable */ let __nativeIsArray = !!Array.isArray, __objToString = Object.prototype.toString, __toStringClass = '[object ', __errorClass = __toStringClass + 'Error]', __fileClass = __toStringClass + 'File]', __arrayClass = __toStringClass + 'Array]', __boolClass = __t...
/* eslint-disable radix */ import * as slipHelper from './slip39_helper'; import { MIN_ENTROPY_BITS } from './constants'; import { bitsToBytes, generateArray } from './utils'; import * as allUtils from './utils' const MAX_DEPTH = 2; /** * Slip39Node * For root node, description refers to the whole set's title e.g...
import { app, ipcMain, session, powerMonitor, protocol } from 'electron' import settings from 'electron-settings' import fs from 'fs-extra' import path from 'path' import 'reflect-metadata' import { SETTINGS_FOLDER } from 'src/constants/appPaths' import { MainChannel } from 'src/constants/channels' import { isTest } fr...
// utils.ts // ============================== // Utility functions declare var $: any; declare var hljs: any; declare var UIkit: any; class Utils { scrollDuration: number = 250; lastScrollTop: number = 0; delta = 5; constructor() { this.init(); } public init() { ...
import I18n from 'i18n-js'; import { Icon, Text, View } from 'native-base'; import React from 'react'; import { TouchableOpacity } from 'react-native'; import * as Animatable from 'react-native-animatable'; import I18nManager from '../../../I18n/I18nManager'; import BaseProps from '../../../types/BaseProps'; import Ch...
// The MIT License (MIT) // // Copyright (c) 2021 Camptocamp SA // // 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, c...
import { Component, OnInit, ViewChild, ChangeDetectorRef, OnDestroy, Inject } from '@angular/core'; import { DataSource } from '@angular/cdk/collections'; import { MatPaginator, MatSort, MatTableDataSource, MatDialog, MatDialogRef, MAT_DIALOG_DATA, MatSnackBar } from '@angular/material'; import { MenuStateService } fr...
<gh_stars>10-100 import { BrowserDynamicTestingModule, platformBrowserDynamicTesting, } from '@angular/platform-browser-dynamic/testing'; import {CUSTOM_ELEMENTS_SCHEMA} from '@angular/core'; import {ComponentFixture, TestBed} from '@angular/core/testing'; import {FormsModule} from '@angular/forms'; import {HttpCli...
<reponame>GrantGryczan/mspfa import validate from './index.validate'; import type { APIHandler } from 'lib/server/api'; import type { RecursivePartial } from 'lib/types'; import { Perm } from 'lib/client/perms'; import type { ServerUserID } from 'lib/server/users'; import users from 'lib/server/users'; import flatten f...
<reponame>zealoussnow/chromium // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview * 'settings-main' displays the selected settings page. */ import 'chrome://resources/cr_components/m...
<reponame>jfseb/jdbcsql_throughput 'use strict'; //var jinst = require('jdbc/lib/jinst'); var AsciiTable = require('ascii-table'); var _ = require('lodash'); var TPool = require('jdbc').Pool; import { ISQLExecutor} from './constants'; /** * "Fixes the node-jdbc collect to also accept " * @param {*} callback ...
<reponame>alexharri/animation-editor<gh_stars>10-100 import { useRef } from "react"; import { Tool } from "~/constants"; import { cssCursors } from "~/cssVariables"; import { useKeyDownEffect } from "~/hook/useKeyDown"; import { isKeyDown } from "~/listener/keyboard"; import { getPathTargetObjectFromContext, getShape...
/* Copyright(c) 2013 - 2016 3NSoft Inc. * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, you can obtain one at http://mozilla.org/MPL/2.0/. */ import arrays = require('../util/arrays'); /** * This array contains 64 ...
import React from "react"; import {PageContainer} from "@ant-design/pro-layout"; import {Badge, Calendar, Col, Row, Select, Alert, Button, Modal, Descriptions, Popover, message, Form, Input, DatePicker} from "antd"; import styles from './index.less' import moment from "moment"; import {MenuUnfoldOutlined} from "@ant-de...
import classNames from 'classnames'; import React from 'react'; import { Capture } from 'tools/capture/functions'; import Data from 'tools/data'; import { Roster } from 'tools/roster/functions'; import { Scoreboard } from 'tools/scoreboard/functions'; import { SkaterRoster } from 'tools/vars'; interface Props extends ...
// modified from https://github.com/eoinmurray/histogram/blob/master/histogram.js // todo: rewrite using d3 : see https://observablehq.com/@d3/d3-bin import { decodeFromCompressedBase64, JsHistogram } from 'hdr-histogram-js'; import RecordedValuesIterator from 'hdr-histogram-js/dist/RecordedValuesIterator'; import { St...