text
stringlengths
3.08k
15.5k
import { convertMonthFromCSV } from './convert'; import { csv } from './setup'; import { ProjectMap } from './types/projectMap'; import { AprodaData, AprodaProjectEntry } from './types/aproda.types'; const topInputSelector = '#arbeitstagUserBereich > table:nth-child(4) > tbody > tr > td:nth-child(1) > table > tbody ...
<reponame>rafasbcgov/NotifyBC // Copyright 2016-present Province of British Columbia // // 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 /...
import { findPackageDir } from "@rnx-kit/tools-node"; import { AllPlatforms, platformExtensions, } from "@rnx-kit/tools-react-native/platform"; import { changeHostToUseReactNativeResolver } from "@rnx-kit/typescript-react-native-resolver"; import { createDiagnosticWriter, Project, readConfigFile, } from "@rnx...
// Copyright 2020-2022 OnFinality Limited authors & contributors // SPDX-License-Identifier: Apache-2.0 import fs from 'fs'; import path from 'path'; import {URL} from 'url'; import {Command, Flags} from '@oclif/core'; import chalk from 'chalk'; import cli from 'cli-ux'; import fuzzy from 'fuzzy'; import * as inquirer...
<filename>packages/electron-updater/src/DownloadedUpdateHelper.ts import { UpdateInfo } from "builder-util-runtime" import { createHash } from "crypto" import { createReadStream } from "fs" import isEqual from "lodash.isequal" import { Logger, ResolvedUpdateFileInfo } from "./main" import { pathExists, readJson, emptyD...
/** * @license * Copyright 2020 Dynatrace LLC * 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 ag...
import React, { useState, useEffect, useCallback } from 'react' import './Select.less' import { Input, Tag } from 'src/UI' interface Select { options?: string[] defaultValue?: string defaultValues?: string[] disabled?: boolean optionsDisabledarr?: number[] placeholder?: string allowClear?: boolean mode?...
import { Link, useNavigate, useParams } from 'react-router-dom' import { useState, useMemo, useRef } from 'react' import { polygon, booleanPointInPolygon } from '@turf/turf' import GeoJSON from 'geojson' import Layout from './Layout' import Filter from './Filter' import ShelterListItem from './ShelterListItem' import *...
import React, { Component } from 'react'; import { Icon, Spin } from 'antd'; import moment from 'moment'; import classNames from 'classnames'; import { SelectProps, SelectDownOptionProps } from '../_util/selectProp' import { DatePicker } from '..' const dateFormat = 'YYYY-MM-DD'; export interface IProps extends Selec...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule, ErrorHandler, Injectable } from '@angular/core'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { NavComponent } from './nav/nav.component'; import { HttpClientModule } from '@...
import React, { useCallback, useMemo } from 'react' import { getModalVisibility, setVisibility } from 'audius-client/src/common/store/ui/modals/slice' import { getStatus, getTrack } from 'audius-client/src/common/store/ui/share-sound-to-tiktok-modal/selectors' import { authenticated, setStatus, share } f...
import { injectL2Context } from '@eth-optimism/core-utils' import { getContractInterface, getContractFactory } from '@eth-optimism/contracts' import { Contract, Wallet, constants, providers, BigNumber, utils, } from 'ethers' import * as request from "request-promise-native"; import { expectEvent } from '@o...
<gh_stars>0 import { Tag } from './validators'; import { DEBUG } from '@glimmer/env'; interface AutotrackingTransactionSourceData { context?: string; error: Error; } export let runInAutotrackingTransaction: | undefined | ((fn: () => void, debuggingContext?: string | false) => void); export let deprecateMutati...
//FEATURES import React, {useState, useEffect} from 'react' //TYPES import {GeneralTypes} from '../../types/types' //STYLES import './slider.scss' import TypeWriterText from './typewritterText' export type SliderType = { data?:GeneralTypes['sliderData'][], active?: string, mode?: string, avatar?: string, ani...
/* Copyright (c) 2017-2020 <NAME> Software Co., Ltd. https://www.cocos.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated engine source code (the "Software"), a limited, worldwide, royalty-free, non-assignable, revocable and non-exclusive license to...
import type { Address, FetchContext, IpfsUrlFn, NftMetadata, NftJsonMetadata, } from "./types" // Some NFT minting services misinterpreted the JSON schema from the EIP as // literal JSON, e.g. portion.io: // https://ipfs.io/ipfs/QmNt5T9HSXKLXZ3kmciU4Tm6q9R8JEm5ifJkPoxapjyRUR type NftMetadataMixedInJsonSchema...
<reponame>Minitiai/arco-design-vue /* eslint-disable no-await-in-loop */ import path from 'path'; import fs from 'fs-extra'; import glob from 'glob'; import { ComponentDoc, parse as parseComponent } from 'vue-docgen-api'; import chalk from 'chalk'; import print from './utils/print'; import templates from './templates';...
<filename>src/VueProgram.ts import fs = require('fs'); import path = require('path'); import ts = require('typescript'); import FilesRegister = require('./FilesRegister'); import FilesWatcher = require('./FilesWatcher'); import vueParser = require('vue-parser'); class VueProgram { static loadProgramConfig(configFile...
<filename>src/helpers/AllExternalPools.ts import { BigNumber, ethers } from "ethers"; import { abi as PairContractABI } from "src/abi/PairContract.json"; import { formatCurrency, getTokenPrice } from "src/helpers"; import { ExternalPool } from "src/lib/ExternalPool"; import { addresses, NetworkId } from "src/networkDet...
import { OutputAsset } from 'rollup' import { Manifest, ManifestChunk } from 'vite' import { isResourceByMatch, isString, _debug } from './helpers' import { dynamicScripts } from './plugin-contentScripts' import { CrxPluginFn } from './types' interface Resources { assets: Set<string> css: Set<string> imports: Se...
import { Point, Renderable, RenderLayer } from "../model"; import { trianglesGridDoubleOffsets } from "./gridPatterns/trianglesGridDoubleOffsets"; export interface Triangle { /** index of points - not points itself */ points: [number, number, number]; opacity?: number; fillOpacity?: number; fill?: ...
import {Component, OnInit, OnDestroy, ViewChild, AfterViewInit, ElementRef, AfterViewChecked} from '@angular/core'; import { WebREPL } from 'webrepl-client/webrepl.js'; import {NgbModal} from '@ng-bootstrap/ng-bootstrap'; import {ConnectDialogComponent} from './connect_dialog.component'; enum ScanState { off, expe...
import * as tt from './ttTable' import { RowType, Table } from './ttTable' import * as vscode from 'vscode' import { convertEOL, findTablePrefix } from './utils' import { relaxedTableParser as relaxedParser } from '../src/markdownParser' import { IToken, Parser } from 'ebnf' const verticalSeparator = '|' const horizon...
// @ts-ignore import express from 'express'; import * as _ from 'lodash'; import * as http from 'http'; import { createExpressServer, getMetadataArgsStorage } from 'routing-controllers'; import { IStaticFiles } from '../../IStaticFiles'; import { IRoutingController } from '../../IRoutingController'; import { IFramework...
/* istanbul ignore file */ import * as React from 'react'; import { Clear, ExpandMore } from '@manifest-ui/icons'; import ReactSelect, { Props as ReactSelectProps } from 'react-select'; import { StyledControl, StyledIndicatorContainer, StyledIndicatorsContainer, StyledInput, StyledInputIcon, StyledMenu, S...
// deno-lint-ignore-file // deno-fmt-ignore-file // DO NOT EDIT - This file is automatically maintained by `npm run generate-crypto-types` /** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */ export ...
import EventEmitter from "../../commons/events/EventEmitter"; import console from "../../commons/console"; import lang from "../../commons/lang"; import random from "../../commons/random"; const DEF_HOST = 'ws://localhost:8181/websocket'; const DEF_UID = 'mebot_web'; const EVENT_OPEN: string = 'on_open'; const EVENT...
export const InterfaceTypes = { strip: 0, bus: 1, }; export enum Replacers { App = "[app]", Bus = "[bus]", Button = "[button]", Cell = "[cell]", Channel = "[channel]", Strip = "[strip]", } /* STRIP *********************************************************************** ***************************************...
export {}; const fs = require('fs'); const nbs: number[] = fs.readFileSync(__filename.replace(/\.js/, '.txt'), 'utf-8').split(',').map(x => +x); function *run(input: number[], program: number[]): Generator<number, number, number> { let pos: number = 0; let result: number = 0; let relativeBase: number = 0; cons...
<filename>src/generate-rest.ts<gh_stars>1-10 import * as fs from "fs/promises"; import { parse } from "./openapi/openApi/v2/index.js"; import { postProcessClient } from "./openapi/utils/postProcessClient.js"; import type { Model } from "./openapi/client/interfaces/Model"; import prettier from "prettier"; const apiData...
<gh_stars>0 import { getOwner, setOwner } from '@ember/application'; import { notifyPropertyChange } from '@ember/object'; import { buildQuery, QueryOrExpression, RecordIdentity, Transform, TransformBuilder, TransformOrOperations, RecordOperation, Record } from '@orbit/data'; import MemorySource, { Cache as MemoryCa...
import { existsSync, mkdir, readFile, writeFile } from 'fs'; import { ensureDir } from 'fs-extra'; import * as Mustache from 'mustache'; import { dirname, join } from 'path'; import { parse as swaggerFile, validate } from 'swagger-parser'; import { Operation, Path, Spec as Swagger } from 'swagger-schema-official'; impo...
<reponame>heath-hamilton/microsoft-teams-ui-component-library export type TLocale = "en-US" | "fa"; export type TTextObject = string | { [locale: string]: string } | undefined; type TInterpolationArgs = [object] | string[]; export const interpolate = ( template: string, interpolationArgs: TInterpolationArgs ) => ...
<reponame>bekriebel/foundry-vtt-types import { ConfiguredDocumentClass, ConstructorDataType, PropertiesToSource } from '../../../types/helperTypes'; import { DocumentModificationOptions } from '../../common/abstract/document.mjs'; import { CombatantDataProperties } from '../../common/data/data.mjs/combatantData'; decl...
import fs from "fs" import _ from "lodash" import hbs from "handlebars" import { typeResolvers, resolveSchemaType } from "targets" import { Target, TargetTypeMap, TargetServer, GenerateArguments } from "types" import { SchemaObject, ServerObject, ParameterObject } from "openapi3-ts" import { Operation } ...
import { INPUT_ACTIONS } from 'input-ui-ipc-provider'; import { Node, CallExpression, SignaturedDeclaration } from "ts-simple-ast"; import * as ts from 'typescript'; import { CodeFixOptions, getName } from 'ts-simple-ast-extra'; import { ActionConfig, ToolConfig } from "typescript-plugins-text-based-user-interaction"; ...
import React, { useState, FormEvent, useEffect } from 'react'; import { Container, Row, Col, Form, FormGroup, Label, Input, Button } from 'reactstrap'; import { FieldSchema } from '../../core/models/Schema'; import { ValidationType, validate } from '../../core/utils/validation'; import ButterToast, { Cinnamon, POS_RIGH...
import { Engine } from "./engine"; import { Vector2 } from "./vector"; import { assets } from "./assets"; import { PlayerPhysics, MotionMode } from "./physics/player-physics"; import { PickableType } from "./level.interface"; import { loadSave } from "./saves"; import { DynamicBody } from "./physics/physics"; import "...
/* * Copyright (C) 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 applicable law or agreed ...
/** * ============LICENSE_START======================================================================== * ONAP : ccsdk feature sdnr wt odlux * ================================================================================================= * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. Al...
<filename>src/helpers/newcomers/notifyCandidate.ts<gh_stars>1-10 import { ExtraReplyMessage, Message, MessagePhoto, } from 'telegraf/typings/telegram-types'; import {cloneDeep} from 'lodash'; import {CaptchaType} from '@models/Chat'; import {User} from 'telegram-typings'; import {Extra} from 'telegraf'; import {C...
import { HarvestFlag } from "flags/HarvestFlag"; import { CreepRoleName, FlagType } from "utils/constants"; import { CreepAnchor } from "utils/CreepAnchor"; import { claimAmount, getClaimedAmount, getRoomAudit } from "utils/tickCache"; import { BasicCreep } from "./BasicCreep"; let lastFlagManager:HarvestFlag|undefine...
<reponame>ramuta/hop import { CSSProperties } from 'react' import createBreakpoints from '@material-ui/core/styles/createBreakpoints' import { TypographyOptions } from '@material-ui/core/styles/createTypography' import { SkeletonClassKey } from '@material-ui/lab/Skeleton' // https://stackoverflow.com/a/64135466/143916...
import { useDomain } from '@/composables/useDomain'; import Delegate from '@/views/Delegate.vue'; import Explore from '@/views/Explore.vue'; import GenericDiscordRedirect from '@/views/GenericDiscordRedirect.vue'; import AllGuides from '@/views/Guide/AllGuides.vue'; import CreateGuide from '@/views/Guide/CreateGuide.vu...
import React, { useContext } from 'react' import { useGroupState } from '@xrengine/client-core/src/social/services/GroupService' import { ChatService } from '@xrengine/client-core/src/social/services/ChatService' import { useHarmonyStyles } from '../style' import { Delete, Edit, Forum, GroupAdd, MoreHoriz } from '@mui/...
import type * as mode from './HiveMode' import { languages, Emitter, IEvent, Uri } from './fillers/monaco-editor-core' import { languageID } from './config' import { UDCompletionItem } from './CompletionItemAdapter' import { CaretPosition } from '@lwz/hive-service' export interface CompletionsOptions { /** * azka...
/** * validate relative urls and external links in markdown files */ import * as validator from "validator"; import * as brokenLink from "broken-link"; import * as path from "path"; import * as fs from "fs"; import * as readline from "readline"; const exec = require("child_process").exec; const args = require("yargs...
<reponame>wizardpisces/js-ziju<filename>src/backend/x86Assemble.ts<gh_stars>100-1000 import ESTree from 'estree' import { X86Context } from "../environment/context"; import { X86NamePointer } from '../environment/X86-Environment'; import { SYSCALL_MAP, SystemCall } from './common' export * from '../environment/X86-Env...
<gh_stars>1-10 // Imports const axios: any = require('axios'); const fs = require('fs'); import { BunqKey, BunqApi, BunqApiConfig, BunqApiSetup, BunqConnection, } from 'bunq-js-api/dist'; const configHandler: any = require('./config'); const database = require('./database'); // Link generation con...
<reponame>WorthyD/d2-clandashboard /** * Bungie.Net API * These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality. * * The version of the OpenAPI document: 2.12.0 * Contact: <EMAIL...
<reponame>firefoxhome/kendryte-ide import { IContextKey, IContextKeyService } from 'vs/platform/contextkey/common/contextkey'; import { SerialReplHistory } from 'vs/kendryte/vs/workbench/serialPort/electron-browser/serialReplHistory'; import { createAndBindHistoryNavigationWidgetScopedContextKeyService } from 'vs/platf...
<reponame>Nixinova/resourcepackager const fs = require('fs'); const copyfiles = require('copyfiles'); const movefiles = require('glob-move'); const archiver = require('archiver'); const packFormat = require('pack-format'); type rpkrConfig = { [key: string]: any }; type booleanConfig = { [key: string]: boolean }; type ...
import * as fs from 'fs'; import * as http from 'http'; import * as https from 'https'; import * as path from 'path'; import * as url from 'url'; import * as util from 'util'; import { workspace, ExtensionContext, window, ProgressLocation } from 'vscode'; import { LanguageClient, LanguageClientOptions, Ser...
import { Trans } from '@lingui/macro'; import { Box, Button, FormControl, InputBase, ListItemText, MenuItem, Select, SelectChangeEvent, Typography, } from '@mui/material'; import React, { ReactNode } from 'react'; import NumberFormat, { NumberFormatProps } from 'react-number-format'; import { CapType...
import React from 'react'; import { LayoutAnimation, Linking, Text, TouchableOpacity, TouchableWithoutFeedback, UIManager, View, Image, Dimensions, } from 'react-native'; import { fromString } from 'html-to-text'; // note: this needed `cp node_modules/react-native-vector-icons/Fonts/FontAwesome*.ttf ...
import { AfterViewInit, ChangeDetectorRef, Component, Inject, OnDestroy, OnInit, ViewChild } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { AppState, Contact, ContactsState, PlanType, UserState } from '../../store/datatypes'; import { ContactDelete, ContactImport, ContactsGet, SnackErrorPush...
<reponame>milkrong/reach4help import { FirestoreDataConverter } from '@google-cloud/firestore'; import { IsArray, IsString } from 'class-validator'; import { firestore } from 'firebase-admin'; import { IRequest, Request, RequestStatus } from './index'; import { ITimelineItem, TimelineItem } from './timeline'; import ...
<gh_stars>0 /*! * Copyright (c) 2019-2020 EclipseSource and others. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0, or the MIT License which is * available at https://opensource....
import { EntryFormContainer, EntryFormWrapper } from '../../EntryForm/wrappers'; import { useT } from '../../../lib/i18n'; import { EntryFormHead } from '../../EntryForm/EntryFormHead'; import { FormGrid, FormItem, FormItemWidth } from '../helpers/formComponents'; import { DashboardLinkList } from '../../Dasboard/Dashb...
import Page from '../state/Page'; import Resolver from '../state/Resolver'; import store from '../store'; import Dict from '../Dict'; export interface Set { type: 'page-set', pages: Page[] } export interface Resolve { type: 'page-resolve', id: string } export interface Remove { type: 'page-remove', id: s...
import { Tooltip } from './tooltip-builder'; export interface SpinnerColorRgb { red: number; green: number; blue: number; } export interface ISpinnerIcon { tooltip?: string; tooltipStyle?: string; circleContent?: string; size: number; depth: number; animate?: boolean; spinnerCo...
<gh_stars>0 import * as go from 'gojs'; export enum stateColor { Stopped = "red", Started = "green", InError = "gray", Starting = "Orange" }; export interface NodeDataArrayItem { key: string; text?: string; group?: string; color?: string; isGroup?: boolean; } export interface Lin...
function* servers(ns: IGame): IterableIterator<string> { let queue: string[] = []; let visited = new Set<string>(); while (queue.length > 0) { const elt = queue.shift()!; yield elt; visited.add(elt); for (const neighbor of ns.scan(elt)) { if (visited.has(neighbor)) continue; queue.pus...
<filename>examples/three-pix-droid/attraction-and-repulsion/index.ts import './index.scss'; import { System, World } from '@ecs'; import { random } from './random'; import { Vector2 } from './math'; import { draw } from './create-circle'; const config = { dotMinRad: 6, dotMaxRad: 20, sphereRad: 350, bigDotRa...
<gh_stars>1-10 /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *------------------------------------------------...
/* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-call */ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ /* eslint-di...
<reponame>yonischeyer1/m1_myusers_io import { APP_CWD, isWindows, getRandomArbitrary, APP_DOCKER_META_PATH, ExtractFrames } from "./general"; import { IMAGE_NAME } from "../services /container.service"; const { spawn } = require("child_process"); import config from '../config' export function runLocalCMD(cmd:string, c...
import fetch from 'node-fetch'; import * as crypto from 'crypto'; import * as fs from 'fs'; import { Response } from 'node-fetch'; import * as _ from 'lodash'; import * as Promise from 'bluebird'; const API_URL = 'http://next.obudget.org/api/query?query='; const DOC_URL = 'http://next.obudget.org/get/'; const YEAR = 2...
/* Copyright 2019 Google LLC 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distri...
import pointListTpl from "./template/point-list"; import "./style/index.scss"; import { EventManager, getBoundingClientRect, isArray, updateStyle } from "@lin-media/utils"; import { HighlightList, HighlightOptions } from "./types"; import MediaPlayer from "@lin-media/player"; import { HighlightEvents } from "./...
<filename>src/vs/editor/contrib/suggest/common/completionModel.ts /*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information....
<gh_stars>10-100 // 颜色转换相关算法 // https://jsfiddle.net/Lamik/9rky6fco/ // https://stackoverflow.com/questions/17242144/javascript-convert-hsb-hsv-color-to-rgb-accurately interface Hsva { h: number, s: number, v: number, a?: number } const HEX_REG = /^#([a-f\d]{3}|[a-f\d]{6})$/i const RGB_REG = /^rgba?\s?\(/i ...
import { EG, useEffect, useReducer, useRef, useState } from '@web-companions/fc'; import hub from 'hub'; import { HUB_ACTION } from 'hub/actions'; import { render } from 'lit-html'; import { repeat } from 'lit-html/directives/repeat'; import { loadingProgressBar, LoadingProgressBarHTMLElement } from 'loading-progress-b...
<reponame>miyamonz/glisp import chroma from 'chroma-js' import {vec2} from 'gl-matrix' const TOMORROW = { '--currentline': '#efefef', '--selection': '#d6d6d6', '--foreground': '#4d4d4c', '--comment': '#8e908c', '--red': '#c82829', '--orange': '#f5871f', '--yellow': '#eab700', '--green': '#718c00', '--aqua': '...
import { screen, BrowserWindow, BrowserWindowConstructorOptions, Display, Rectangle } from 'electron'; import { StateStorage } from './state-storage'; type WindowMode = 'normal' | 'maximized'; interface WorkingArea { x: number; y: number; width: number; height: number; } export interface WindowState ...
<filename>packages/core/src/interval.ts<gh_stars>1-10 import { isNamed, Named } from "./named"; import { decode, Direction, encode, IntervalCoordinates, isPitch, Pitch, PitchCoordinates, } from "./pitch"; import { fillStr } from "./utils"; export type IntervalName = string; export type IntervalLiteral = ...
<gh_stars>0 import { SignedOrder } from '@0x/types'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; import { MarketOperation } from '../types'; import { CollapsedFill, DexSample, ERC20BridgeSource, MultiHopFillData, NativeCollapsedFill, } from './market_operation_utils/types';...
<filename>src/spawn.ts import AbortController, {AbortSignal} from 'node-abort-controller'; import {AbortError, catchAbortError, isAbortError} from './AbortError'; export type SpawnEffects = { /** * Schedules a function to run after spawned function finishes. * * Deferred functions run serially in last-in-fi...
import { TFClassesTracker } from './TFClassesTracker'; import { Punishment, PunishmentData, PunishmentType } from './Punishment'; import db, { loadQuery } from '../database/db'; import logger from '../modules/logger'; import { Role, StaffRole } from './Roles'; import { PlayerSetting, PlayerSettings } from './PlayerSett...
import clsx from 'clsx' import Head from 'next/head' import { HeadTags } from '../head-tags' import { CommunityWall } from '../landing/rework/community-wall' import { FooterNew } from '../landing/rework/footer-new' import { HeaderNew } from '../landing/rework/header-new' import { PartnerListNew } from '../landing/rewo...
/* * Copyright © 2019 Atomist, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
/** * Permissions on the client are just strings. This makes clear, that * permissions instead of arbitrary strings should be given. */ export enum Permission { agendaItemCanManage = `agenda_item.can_manage`, agendaItemCanSee = `agenda_item.can_see`, agendaItemCanSeeInternal = `agenda_item.can_see_intern...
import React from 'react' import { ModalHeader, ModalBody, ModalFooter, Button, Formik, RadioSelect, Checkbox, Loader, FormikValues, DropdownSelect, SelectOption, FormikProps, } from '@reapit/elements' import { useDispatch, useSelector } from 'react-redux' import { NegotiatorModel } from '@reapi...
/** * @private * @param {Object} layer Gl object layer. * @param {string} layoutOrPaint 'layout' or 'paint'. * @param {string} property Feature property. * @param {number} zoom Zoom. * @param {Object} feature Gl feature. * @param {Object} [functionCache] Function cache. * @return {?} Value. */ export function ...
import { Icon, MoonIcon, SunIcon, WarningIcon } from "@chakra-ui/icons"; import { Box, Button, ButtonGroup, Center, Divider, Flex, Heading, HStack, Image, Link, Skeleton, Stack, Text, Tooltip, useColorMode, useColorModeValue, VStack, } from "@chakra-ui...
import React, { useState } from "react"; import type { default as StateManagedSelect, OnChangeValue } from "react-select"; import { AlgorithmName, Nature, Pokemon, PokemonSpec } from "./typings"; import leveler from "./leveler"; import "./styles.css"; /* eslint-disable @typescript-eslint/no-var-requires, @typescript-...
import {get_translation} from "../common/mat4.js"; import {Vec3} from "../common/math.js"; import {copy} from "../common/quat.js"; import {blueprint_collapse} from "./blueprints/blu_collapse.js"; import {blueprint_explosion} from "./blueprints/blu_explosion.js"; import {find_all, find_first, Name} from "./components/co...
import React, { useEffect, useMemo } from 'react'; import CollapseIcon from './collapse-icon'; import useTheme from '../use-theme'; import Expand from '../utils/expand'; import { useCollapseContext } from './collapse-context'; import useCurrentState from '../use-current-state'; import CollapseGroup from './collapse-gro...
<gh_stars>10-100 import { Person, Server } from './api'; export enum MsgType { UnhandledMsg = 0, UnknownMsg = 1, // Live player actions Say = 10, SayTeam = 11, Killed = 12, KillAssist = 13, Suicide = 14, ShotFired = 15, ShotHit = 16, Damage = 17, Domination = 18, Re...
import React from "react"; import { DateTime } from "luxon"; import { Box, ChatMessage, ChatBubble, ChatMessageMeta, ChatMessageMetaItem, } from "@twilio-paste/core/"; import { ChatIcon } from "@twilio-paste/icons/cjs/ChatIcon"; import { UserSessionContext } from "../containers/UserSessionContext"; import Inp...
import { ORGANIZATION_NOT_FOUND, USER_NOT_FOUND, INVALID_TOKEN, } from "@staart/errors"; import { OrgScopes, Tokens, UserScopes, SudoScopes } from "../interfaces/enum"; import { ApiKeyResponse, AccessTokenResponse } from "./jwt"; import { users, organizations, memberships, access_tokens, api_keys, } fro...
<reponame>endorphinjs/endorphin<filename>packages/template-compiler/src/lib/BlockContext.ts import { ChunkList, Chunk, UsageContext } from '../types'; import CompileState from './CompileState'; import Entity from '../entities/Entity'; import ElementEntity from '../entities/ElementEntity'; import UsageStats from './Usag...
import css from "./Search.less"; import AppState from "../../../../core/types/AppState"; import ContentMan from "../../../../components/contentMan/contentMan"; import IApp from "../../../../core/types/app/IApp"; import IV1InfoJSON from "../../../../types/project/v1/IV1InfoJSON"; import IWithLocation from "../../../../...
import { strToBase64, base64ToStr } from '@root/encoding/base64' import StackFrame, { ScriptLine } from '../../third-party/react-error-overlay/utils/stack-frame' import { getSourceMapConsumer } from '../../third-party/react-error-overlay/utils/getSourceMap' import { unmapBabelTranspiledCode, unmapUtopiaSafeFunction...
/** * @file Base HTML template for all containers. */ import path from 'path' import React, { ReactElement } from 'react' import serialize from 'serialize-javascript' import { AppState } from '../store' interface Props { body?: string bundleId?: string description?: string initialState?: Omit<AppState, 'i18...
<gh_stars>10-100 import { getHeaderContentTypeOf } from "../../utils/extensions-resolution.ts"; import { existsSync } from "../../utils/exists.ts"; // import HMR from "../lib/hmr/index.ts"; import { serve, absolute, fetchRemoteRessource } from "../../deps/deps.ts"; import { Utils } from '../classes/Utils.ts'; import Wo...
import { IopaBotReading, IopaContext } from 'iopa-types' import { EdgeApp } from '@iopa-edge/types' import { constants as IOPA, App as IopaApp } from 'iopa' import Router from 'iopa-router' import { makeFetch, FetchFunction } from '@iopa-edge/testing-framework' import { IopaBotAdapterContext } from 'iopa-botadapter' i...
<reponame>wgml/aoc-2018-typescript import * as common from './common'; const army = { immuneSystem: 0, infection: 1, }; interface Group { type: number; units: number; hp: number; attackPoints: number; attackType: string; initiative: number; immunes: string[]; weaknesses: string[]; } const parsePe...
import { ChangeDetectorRef } from "@angular/core"; import { QuestionOriginal } from "../amplitude-test/modals/question"; import { Answers } from "../amplitude-test/modals/answer"; import { AbstractControl, ValidatorFn } from "@angular/forms"; import { FILELISTS } from '../../../global/global'; export interface MediaQu...
import { updateController, getController, ControllerData, ControllerDataType, ControllerDataItems, createController, UpdateControllerParams, deleteController, } from 'api'; import { useEffect, useState } from 'react'; import randomstring from 'randomstring'; import { PanelOptions } from 'types'; import ...