text stringlengths 3.08k 15.5k |
|---|
import React, { FC } from "react";
import { NextPage } from "next";
import Link from "next/link";
import { useRouter } from "next/router";
import styled from "styled-components";
import { Error as ErrorComponent } from "../../../../../components/Error";
import {
IconCell,
MobileModifiedAtCell,
ModifiedAtCell,
}... |
import React, { useState, useEffect, useRef, useMemo } from "react";
import "./Player.scss";
import { ITrack } from "../types";
import {
saveTrackProgress,
getTrackProgress,
updatePlayedTracks,
getCurrentTrack,
saveCurrentTrack
} from "../utils/storage";
export interface IPlayerContext {
play: (track: ITra... |
<reponame>Milosz08/ReactJS_Web_Application_Digititles_Imagine
/*
* Copyright (c) 2022 by <NAME> <https://miloszgilga.pl>
*
* File name: mixins.styles.ts
* Last modified: 22/02/2022, 17:09
* Project name: digititles-imagine
*
* Licensed under the MIT license; you may not use this file except in compliance with th... |
import jsc from "jsverify";
import * as math from "mathjs";
import { Seq, Set } from "immutable";
import { identity } from "lodash";
import { Game, shapley } from "./shapley";
const neSet = (arb: jsc.Arbitrary<any>) =>
jsc.nearray(arb).smap(
(arr: any[]) => Set(arr),
(set: Set<{}>) => set.toArray(),
);
co... |
import {
ContractDefinition,
FunctionDefinition,
FunctionVisibility,
ParameterList,
SourceUnit,
StateVariableVisibility,
VariableDeclaration
} from "solc-typed-ast";
import expect from "expect";
import fse from "fs-extra";
import { searchRecursive, toAst } from "./utils";
import { scribble }... |
<reponame>ramandhingra/graphql-yoga<gh_stars>0
import {
createServer as createHttpServer,
IncomingMessage,
RequestListener,
Server as NodeServer,
ServerResponse,
} from 'http'
import { createServer as createHttpsServer } from 'https'
import { getNodeRequest, NodeRequest, sendNodeResponse } from './http-utils'... |
import request from "sync-request";
import * as asyncrequest from "request";
import * as cheerio from "cheerio";
import * as Excel from 'exceljs';
import HashMap = require("hashmap");
import * as SS from "./VStaticStrings";
import { Vasync } from "./async";
import { VMetroInfoManager } from "./VMetroInfoManag... |
import {
Dialog,
ScrollablePanel,
} from "phaser3-rex-plugins/templates/ui/ui-components.js";
import {
EVENT_WORLD_EXIT,
EVENT_MUSIC_CHANGE,
EVENT_MUSIC_PAUSE,
EVENT_MUSIC_PLAY,
EVENT_VOLUME_CHANGE,
} from "../../api/events";
import {
COLOR_DIALOG_BACKGROUND,
COLOR_DIALOG_FOREGROUND,
COLOR_YELLOW,
}... |
import React from 'react';
import {getSSRId} from 'newskit';
import {Svg} from '../../svg';
import {Path} from '../../path';
import {Rect} from '../../rect';
export const BannerDo1Illustration: React.FC = () => {
const clip0 = getSSRId();
const clip1 = getSSRId();
const filter0 = getSSRId();
return (
<Sv... |
import { User } from '@prisma/client';
import { KlasaUser } from 'klasa';
import { CommandResponse } from 'mahoji/dist/lib/structures/ICommand';
import { Bank } from 'oldschooljs';
import { KaramjaDiary, userhasDiaryTier } from '../../../lib/diaries';
import { SkillsEnum } from '../../../lib/skilling/types';
import { ... |
<gh_stars>1-10
declare global {
interface ISystem {
import(request: string): Promise<any>;
}
var System: ISystem;
}
export const locking: any = {
path: "/locking",
name: "locking",
component: () =>
System.import("../components/lockscreen/components/locking-page.vue")
};
export const loginRouter: any... |
<filename>libs/amyr-ts-lib/src/lib/libs/tsmt/datastructures/priority-queue.ts
/**
* Copyright 2016 <NAME> (www.algorithmist.net)
*
* 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
*... |
import h from "@macrostrat/hyper";
import ReactDataSheet, { DataEditor } from "react-datasheet";
import "react-datasheet/lib/react-datasheet.css";
import update, { Spec } from "immutability-helper";
import { Button, ButtonGroup } from "@blueprintjs/core";
import { ErrorBoundary } from "@macrostrat/ui-components";
impor... |
import { Injectable } from "@angular/core";
import {
Validators,
AbstractControl,
FormGroup,
FormArray,
ValidatorFn,
} from "@angular/forms";
import { PATTERN } from "../constants/patterns";
import { VALIDATION_CRITERIA } from "../constants/validation-criteria";
@Injectable({
providedIn: "root",
})
export ... |
<gh_stars>0
// *** 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";
/**
* Manages a Disk Pool Managed Disk Attachment... |
import React, { useState, useEffect } from 'react';
import { Count, Form, Targets } from '../components';
import PhoneFields from './PhoneFields';
import CallingTargets from './CallingTargets';
import { Header } from '../styles';
import {
parseTarget,
getEmailTarget,
arrayUtils,
getTargetList,
} from '../util... |
import {
mainWebpackConfig as webpackReactElectronMainConfig,
rendererWebpackConfig as webpackReactElectronRendererConfig,
} from '@rocket-scripts/react-electron-preset';
import { ESBuildLoaderOptions } from '@rocket-scripts/react-preset/webpackLoaders/getWebpackScriptLoaders';
import { getWebpackAlias, icuFormat, ... |
<reponame>screeny05/node-glace
import * as Utils from './napi-utils';
import { nativeTypeCollection, NativeType } from './type-matcher';
import { NativeHintsCommand, nativeHintsCommands } from './native-hints';
export interface GlEnum {
docs?: string;
name: string;
value: number;
}
export class GlCommandE... |
/**
* @file entity.ts
* @author tngan
* @desc An abstraction for identity provider and service provider.
*/
import { isString, isNonEmptyArray } from './utility';
import { namespace, wording, algorithms, messageConfigurations } from './urn';
import * as uuid from 'uuid';
import IdpMetadata, { IdpMetadata as IdpMetadat... |
/********************************************************************************
* Copyright (C) 2020 Ericsson 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.
*
* T... |
import a11yDark from "./schemas/a11yDark";
import a11yLight from "./schemas/a11yLight";
import agate from "./schemas/agate";
import anOldHope from "./schemas/anOldHope";
import androidstudio from "./schemas/androidstudio";
import arduinoLight from "./schemas/arduinoLight";
import arta from "./schemas/arta";
import asce... |
import {
CheahsheetClientSettings,
CheahsheetWorldSettings,
MODULE_ID,
TEMPLATES,
} from './constants.js';
interface CheatsheetClientConfig {
controlButtonsEnable: boolean;
}
interface CheatsheetWorldControlButtonConfig {
name: string;
title: string;
icon: string;
pack: string;
entry: string;
com... |
import DirExistUtils from '../../utils/DirExistUtils';
import * as jwt from 'jsonwebtoken';
import getDateAfter from '../../utils/getDateAfter';
import User, { IUser } from '../../db/schema/user';
import { qsms, statusCode, secret } from '../../config/index';
const bluebird = require('bluebird');
const { isValid } = re... |
import React from 'react';
import InitializerView from '../../../components/ui/initializer-view';
import Reader, { DrawerKey, ReaderActionButton } from '../../../components/reader';
import { fetchDataByGet, fetchMessageByPost } from '../../../util/network-util';
import { API } from '../../../configs/api-config';
import... |
import * as k8s from '@pulumi/kubernetes';
import * as pulumi from '@pulumi/pulumi';
import { ComponentResourceOptions, Input } from '@pulumi/pulumi';
import { AppV2 } from '@pulumi/rancher2';
import { AppBase } from './app-base';
import * as util from './util';
// TODO: Allow setting default namespace in definition
i... |
import { Point } from 'src/app/interfaces/point';
import { SvgType } from '../../../enums/svg';
import {Coords} from '../../../services/tool-manager/tools/coords';
import {Boundary} from '../../collisions/base-collision/boundary';
import {Collidable} from '../../collisions/base-collision/collidable';
import {PolygonCol... |
import { IdLabelDto } from '@etsoo/appscript';
import { DataTypes } from '@etsoo/shared';
import { Autocomplete, AutocompleteRenderInputParams } from '@mui/material';
import React from 'react';
import { Utils } from '../app/Utils';
import { AutocompleteExtendedProps } from './AutocompleteExtendedProps';
import { InputF... |
import React, {
FunctionComponent,
useState,
ChangeEvent,
useEffect
} from 'react';
import { Col, FormGroup, Label, Row, Input } from 'reactstrap';
import { useMutation, useQuery } from '@apollo/react-hooks';
import { toast } from 'react-toastify';
import { DocumentQueries } from '../../../../../graphql/queries... |
<reponame>Ryuyxx/p5.capture<gh_stars>0
import { CaptureState } from "@/recorders/base";
import styleStr from "@/style.css";
import { OutputFormat } from "@/p5.capture";
export const getFrameCountStr = (count: number) => {
return `${count}`.padStart(7, "0");
};
export const getElapsedTimeStr = (count: number, framer... |
<gh_stars>1-10
import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';
import { ToastrService } from 'ngx-toastr';
import { ApiService } from '../../../core/services';
import * as Highcharts from 'highcharts';
import {MatTableDataSource} from '@angular/material/table';
declare var require: any;
c... |
const ALL_TYPE = 'ALL';
const WEB_TYPE = 'WEB';
const DESIGN_TYPE = 'DESIGN';
const PRESENTATION_TYPE = 'PRESENTATION';
const PHOTOGRAPHY_TYPE = 'PHOTOGRAPHY';
export type PortfolioType =
| 'ALL'
| 'WEB'
| 'DESIGN'
| 'PRESENTATION'
| 'PHOTOGRAPHY';
export const PORTFOLIO_TYPES: PortfolioType[] = [
ALL_TYP... |
import type { Message, Interaction, User, GuildChannel, Role, TextChannel, NewsChannel, CommandInteraction } from "discord.js";
import type { Inhibitor } from "../inhibitors/Inhibitor";
import { GungnirError } from "../../GungnirError";
import { Command } from "../commands/Command";
import { Listener } from "./Listener... |
<gh_stars>10-100
import { DateFormatType, DateObj, isFormatDateType, Option } from "./types.ts";
import { Locale } from "./locale.ts";
import {
formatToThreeDigits,
formatToTwoDigits,
millisecToMin,
weeksOfYear,
} from "./utils.ts";
import { dateToDayOfYear, dateToTS, dateToWeekDay } from "./convert.ts";
expor... |
<filename>tools/GulpPackageUtils.ts
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
/// <reference path="../src/typings/dynamicDependencyEntry.d.ts" />
/// <reference path="../src/typings/node.d.ts" />
/// <reference path... |
import React, { useState, Fragment, useEffect} from 'react';
import gql from 'graphql-tag';
import { useMutation, useQuery } from 'react-apollo-hooks';
import FormHelperText from '@material-ui/core/FormHelperText';
import Button from '@material-ui/core/Button';
import InputLabel from '@material-ui/core/InputLabel';
imp... |
import React, { FC, useCallback, useEffect, useMemo, useState } from 'react'
import { Tag, TagProps, Tooltip } from 'antd'
import classNames from 'classnames'
import dayjs from 'dayjs'
import get from 'lodash.get'
import { isArr } from '@toy-box/toybox-shared'
import {
CompareOP,
ICompareOperation,
MetaValueType,... |
import React, { useCallback, useMemo } from 'react';
import { useLocation } from 'react-router-dom';
import moment from 'moment';
import { RestApiState } from '@k9-sak-web/rest-api-hooks';
import HistorikkSakIndex from '@fpsak-frontend/sak-historikk';
import { KodeverkMedNavn, Historikkinnslag } from '@k9-sak-web/type... |
import React from 'react';
import moment from 'moment';
import * as NakamaApi from '@heroiclabs/nakama-js';
import { NotificationCodes, NakamaPluginEvents, Group, GroupUserStatus } from '../plugins/Nakama';
import { Button, Table, Container, Row, Col, Accordion, Card, Alert } from 'react-bootstrap';
import GroupSearch ... |
//import * as React from 'react'
const React = require('react')
import * as flavorSaver from 'flavor-saver'
const { useState, useEffect } = React
import * as PubSub from 'pubsub-js'
import { _ } from './imports/lodash'
import * as immer from 'immer'
immer.setAutoFreeze(false)
function log(...x) {
if (console && ... |
import { IUserDTO } from "../../../dto/user/IUserDTO"
import { IUserRepository } from "../../../repositories/IUserRepository"
import { connection } from "../../../../../shared/infra/knex";
import { User } from "../../../entities/User";
import { AuthenticateUser } from "../../../entities/AutenticateUser";
import { IClie... |
import React, { useRef, useLayoutEffect } from 'react';
import { StyleSheet, Platform, StyleProp, ViewStyle } from 'react-native';
import { WebView, WebViewMessageEvent } from 'react-native-webview';
import PlotlyBasic from './lib/PlotlyBasic';
import PlotlyFull from './lib/PlotlyFull';
/*
Base 64 encode source code
... |
<gh_stars>10-100
import * as esprima from "esprima";
import {Syntax} from "esprima";
import * as ESTree from "estree";
import * as recast from "recast";
import {ASTReplaceable, NodePath} from "ui5-migration";
const builders = recast.types.builders;
/**
* Setting this flag to true leads to some replacement limitation... |
import * as React from 'react';
import Alert from 'react-bootstrap/Alert'
import Button from 'react-bootstrap/Button';
import Col from 'react-bootstrap/Col'
import Container from 'react-bootstrap/Container';
import Form from 'react-bootstrap/Form';
import Row from 'react-bootstrap/Row'
import { BsGeoAlt } from 'react-... |
import { Options, Result } from "compile-run";
import fs from "fs";
import readline from "readline";
import path from "path";
import { runExecutable, compileCpp } from "./compileRunUtils";
export function getFolders(filePath: fs.PathLike): string[] {
const filenames = fs.readdirSync(filePath);
return filenames.fi... |
<gh_stars>10-100
import type { Either } from '../../Either'
import type { UIO } from '../../IO'
import type { Cause } from '../../IO/Cause'
import type { Exit } from '../../IO/Exit'
import type { AsyncInputConsumer, AsyncInputProducer } from './producer'
import * as Q from '../../collection/immutable/Queue'
import * a... |
import { spawn, execSync, ChildProcess } from "child_process";
import logger, { makeLogger } from "../logger";
import * as T from '../types'
import * as path from "path";
import { Player } from "..";
import { Conductor } from "../conductor";
import { getConfigPath } from ".";
import { trycpSession, TrycpClient } from... |
<gh_stars>0
import { Injectable } from '@nestjs/common';
import { InjectRepository } from '@nestjs/typeorm';
import { IsNull, Repository } from 'typeorm';
import { ResponseInterface } from '../../dto-interface/interface';
import { OrderCustomSoftwareEntity } from './order-custom-software.entity';
import { User } from '... |
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
import {_} from '@biesbjerg/ngx-translate-extract/dist/utils/utils';
import {RetreatDateService} from '../../../../services/retreat-date.service';
import {Retreat} from '../../../../models/retreat';
import {MyModalService} from '../../../../s... |
import React, { useState, useEffect, useLayoutEffect, useRef } from "react";
import styled from "@emotion/styled";
import { colors, ScrollableTabs } from "@bitbloq/ui";
import { useSpring, animated } from "react-spring";
import HorizontalBloq from "./HorizontalBloq";
import { BloqCategory } from "../enums";
import { I... |
import { Component, EventEmitter, Input, OnInit, Output, ViewChild } from '@angular/core';
import { NodeRenderer } from '../node/node.service';
import { DagComponent } from '../dag/dag.component';
import { AceEditorComponent } from 'ng2-ace-editor';
import { Alert } from '../alert/alert';
import { WorkflowExecuteDialog... |
<gh_stars>0
class Controller {
public static audioContext: AudioContext
}
class Wave {
public static getWaveform(data: Uint8Array): Uint8Array {
for (var phase = 0, offset = 0, x = 0, xx = data.length; x != xx; ++x) {
if (data[x] > 127) { // 8-bit unsigned, 127 = 0dB
... |
import { Version } from '@microsoft/sp-core-library';
import {
BaseClientSideWebPart,
IPropertyPaneConfiguration,
PropertyPaneTextField
} from '@microsoft/sp-webpart-base';
//import { escape } from '@microsoft/sp-lodash-subset';
//import { SPComponentLoader } from '@microsoft/sp-loader';
import styles from './Gi... |
import type { IncomingMessage, ServerResponse } from 'http';
import http from 'http';
import path from 'path';
import fs from 'fs';
import type { MiddlewareFunction, ResponserFunction } from './newServerTypes';
import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_OK } from './utils/utils';
const mimeTypes = {
'.html': 'tex... |
/**************************************************************************
* (C) Copyright ModusBox Inc. 2021 - All rights reserved. *
* *
* This file is made available under the terms of the license agreement *
* specified in... |
<reponame>ark120202/typescript-pnp-plugin
import path from 'path';
import { getResolvedValue, ResolutionResult, resolveModuleName, walkUp } from 'tsc-pnp/lib/utils';
import * as ts_module from 'typescript/lib/tsserverlibrary';
const formatResolutionFailedMessage = (
type: string,
pnpPath: string | undefined,
con... |
<filename>server/tests/unit/models/job.test.ts
import fs from 'fs';
import PostgreSQL from '../../../src/connections/postgres';
import { ICompanyProperties } from '../../../src/interfaces/company';
import { IJobProperties, IListOfJobs } from '../../../src/interfaces/job';
import JobModel from '../../../src/models/job';... |
import {HeapGrowthTracker} from '../../lib/growth_graph';
import pathToString from '../../lib/path_to_string';
import {createReadStream} from 'fs';
import * as readline from 'readline';
import {SnapshotNodeTypeToString, SnapshotEdgeTypeToString, SnapshotNodeType} from '../../common/interfaces';
import {time} from '../.... |
import { MetaMethods, Table } from './Table'
import { coerceToNumber, coerceToString, LuaType, coerceToBoolean } from './utils'
import { LuaError } from './LuaError'
const binaryArithmetic = <R extends boolean | number>(
left: LuaType,
right: LuaType,
metaMethodName: MetaMethods,
callback: (l: ... |
<filename>syllabus/src/constants/school-name-icon-map-en.ts
import fseIcon from "../assets/img/syllabus-icons/fse.png";
import cseIcon from "../assets/img/syllabus-icons/cse.png";
import aseIcon from "../assets/img/syllabus-icons/ase.png";
import pseIcon from "../assets/img/syllabus-icons/pse.png";
import silsIcon from... |
<gh_stars>0
// NG2
import { Component, EventEmitter, Input, Output, forwardRef, ElementRef, OnInit } from '@angular/core';
import { NG_VALUE_ACCESSOR } from '@angular/forms';
// APP
import { OutsideClick } from './../../utils/outside-click/OutsideClick';
import { KeyCodes } from './../../utils/key-codes/KeyCodes';
impo... |
/**
* @packageDocumentation
* @module Parts.M5StickC_ADC
*/
import Obniz from '../../../obniz';
import PeripheralI2C from '../../../obniz/libs/io_peripherals/i2c';
import ObnizPartsInterface, {
ObnizPartsInfo,
} from '../../../obniz/ObnizPartsInterface';
import { I2cPartsAbstractOptions } from '../../i2cParts';
... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*-------------------------------------------------------------------------... |
import { namedNode } from '@rdf-esm/data-model'
import TermMap from '@rdf-esm/term-map'
import cf from 'clownface'
import type { GraphPointer } from 'clownface'
import type { EventEmitter } from 'events'
import type { SinkMap } from '@rdf-esm/sink-map'
import TermSet from '@rdf-esm/term-set'
import type { RdfResource }... |
import React from "react"
// import { Link } from "gatsby"
import Layout from "../components/layout"
// import Image from "../components/image"
// import SEO from "../components/seo"
// {/* <p>Welcome to your new Gatsby site.</p> */}
// {/* <p>Now go build something great.</p> */}
// {/* <div style={{ maxWidth: `300p... |
<reponame>kyr0/vanil
import { basename, dirname } from 'path'
import { chunk } from '../io/array'
import { getPagesFolder, isDynamicRoutingPath, toProjectRootRelativePath } from '../io/folders'
import { Context } from '../../@types/context'
import { parseImportStatements, parseTemplate, processGSPFunctionDeclaration } ... |
<gh_stars>0
/* global CANNON,THREE,Detector */
/**
* Adds Three.js primitives into the scene where all the Cannon bodies and shapes are.
* @class CannonDebugRenderer
* @param {THREE.Scene} scene
* @param {CANNON.World} world
* @param {object} [options]
*/
import * as THREE from 'three';
import * as CANNON from ... |
<reponame>AetherDim/openroberta-lab
import './pixijs'
import * as $ from "jquery";
import { Scene } from './Scene/Scene';
import { rgbToNumber } from './Color'
import { ScrollView, ScrollViewEvent } from './ScrollView';
import { Util } from './Util';
import { DebugGuiRoot, initGlobalSceneDebug } from './GlobalDebug';
i... |
import React, { useState, useRef } from "react"
import styled from "styled-components"
import { FaChevronRight, FaCheck, FaSpinner } from "react-icons/fa"
import { identifyCustomerGTMEvent } from "../../helpers/gtm"
const Component = styled.div`
p {
margin-bottom: 5px;
color: black;
text-transform: upper... |
import { BrowserWindow } from 'electron';
import { injectable, inject } from 'inversify';
import { DtoDataResponse, DtoLogMessage, LogLevel, LogSource, TargetType, DataStatus, DtoLogMaster } from '@ipc';
import { IDatabaseService } from '../../database/database.service';
import { Configuration, IConfigurationService }... |
import { Badge, Button, Card, List, message, Modal, Popconfirm, Space, Tag } from 'antd';
import React, { useEffect, useState } from 'react';
import type { CurrentUser } from '@/models/user';
import type { MessageType } from '@/models/message';
import { LightFilter, ProFormSelect } from '@ant-design/pro-form';
import t... |
<reponame>ebu/mcma-libraries
import { types } from "util";
import { DynamoDB } from "aws-sdk";
import { DocumentClient, Key } from "aws-sdk/clients/dynamodb";
import { McmaException, Utils } from "@mcma/core";
import { CustomQuery, CustomQueryParameters, Document, DocumentDatabaseMutex, DocumentDatabaseTable, hasFilter... |
import Joi from 'joi';
import { NextApiHandler, NextApiRequest, NextApiResponse } from 'next';
import { FieldInfo } from 'mysql';
import { query } from '@/db/index';
import { Recipe } from '@/db/schemas';
import {
CREATE_INGREDIENTS,
DELETE_RECIPE,
DELETE_INGREDIENT,
GET_RECIPE,
GET_RECIPE_INGREDIENTS,
GET_... |
<reponame>Chan4077/market2
import { Settings, Links } from './interfaces';
import { DomSanitizer } from '@angular/platform-browser';
import { SharedInjectable } from './shared';
import { NewPostDialog } from './dialogs/newpost.component';
import { Component, OnInit, ViewContainerRef, Inject, ViewChild, AfterViewInit } ... |
<gh_stars>1-10
import { websocketReconnectTopic } from "./constants";
import { eventHub } from "./events";
import { logger } from "./logger";
import { IExptMetricSetting, IInsight, InsightType, IStreamResponse, IUser, IZeroCode } from "./types";
import { generateConnectionToken } from "./utils";
import throttleUtil fro... |
import React, { useState, useEffect } from 'react';
import { TextField, Typography, Button } from '@equinor/eds-core-react';
import { showSnackbarNotification } from '@procosys/core/services/NotificationService';
import Checkbox from '../../../../../components/Checkbox';
import { ListContainer, Container, Header, Divid... |
<reponame>highduck/ekx
import * as path from "path";
import {BumpVersionFlag, SemVer} from "./version";
import {resolveFrom} from "./utility/resolveFrom";
import {ModuleDef, validateModuleDef} from "./module";
import {logger} from "./logger";
import * as fs from "fs";
import {makeDirs} from "./utils";
class ProjectSDK... |
import * as React from 'react';
import ResizeObserver from 'resize-observer-polyfill';
import classNames from 'classnames';
import { YuMath } from './Models/YuMath';
import { InterruptTask } from './Functions/InterruptTask';
import { sleep } from './Functions/Sleep';
interface PopUpAreaProps {
priority: 'up' |... |
// @ts-nocheck
/* eslint-disable */
/* tslint:disable */
/* prettier-ignore-start */
/** @jsxRuntime classic */
/** @jsx createPlasmicElementProxy */
/** @jsxFrag React.Fragment */
// This class is auto-generated by Plasmic; please do not edit!
// Plasmic Project: 6YWbAhS5tQQRFkLE21F4kw
// Component: kMmJWCRMpfj
impo... |
<filename>src/facade.ts<gh_stars>10-100
import { init } from 'snabbdom';
import * as sclass from 'snabbdom/modules/class';
import * as sprops from 'snabbdom/modules/props';
import * as sstyle from 'snabbdom/modules/style';
import * as seventlisteners from 'snabbdom/modules/eventlisteners';
import * as sdataset from 'sn... |
/*
* Copyright (c) 2021 Borkenware, All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions ... |
import {
createElement,
ElementType,
RenderObject,
RenderSingleChild,
RenderText,
RenderView
} from '@canvas-ui/core'
import { assert } from '@canvas-ui/assert'
import type { ReactNode } from 'react'
import type { FiberRoot } from 'react-reconciler'
import {
unstable_now as now,
unstable_scheduleCallbac... |
#!/usr/bin/env node
import { createServer } from 'http';
import { resolve } from 'path';
import k8s from 'auto-kubernetes-client';
import express from 'express';
import prometheusBundle from 'express-prom-bundle';
import { configure } from 'log4js';
import yargs from 'yargs';
import { createCachedResourceClient } fr... |
<gh_stars>10-100
import { and, each, is, isClass, mixins, not, or, validate, validateGet } from "../index";
class IdClass {
@validate(each(
is.int(),
not.in([3]),
is.required(),
))
public id: number[];
public hello() {
return "hello use minxin class";
}
}
class NameClass {
@validate(
... |
<gh_stars>1-10
import { Component, Vue, Inject, Prop, Watch, Ref } from 'vue-property-decorator';
import { numeric, required, minLength, maxLength } from 'vuelidate/lib/validators';
import moment from 'moment';
import { FieldType } from '@/shared/model/modelConfig/common-table-field.model';
import { RelationshipType }... |
import { RenNetworkDetails } from "@renproject/contracts";
import {
Asset, BurnAndReleaseParams, BurnAndReleaseParamsSimple, Chain, LockAndMintParams,
LockAndMintParamsSimple, Logger, LogLevel, LogLevelString, RenContract, RenNetwork, RenTokens,
SendParams, SimpleLogger, Tokens, UnmarshalledFees,
} from "@r... |
import * as web3Utils from 'web3-utils'
// import { TransactionReceipt } from 'ethereum-types'
export interface Params {
to?: string
value?: number | string
gas?: number | string
gasPrice?: number | string
data?: string
nonce?: number
}
export interface TxParameters extends Params {
from: string
}
export ... |
import React from 'react'
import packFormats from '../pack_formats.json'
import Button from './Button'
import Content from './Content'
import FileUpload from './FileUpload'
import Footer from './Footer'
import LinkAsButton from './LinkAsButton'
import Message from './Message'
import RadioTable from './RadioTable'
impor... |
<reponame>ychoquet/GeoView
import axios from 'axios';
import L from 'leaflet';
import { FeatureLayer, FeatureLayerOptions, featureLayer, mapService as esriMapService, MapService } from 'esri-leaflet';
import {
AbstractWebLayersClass,
CONST_LAYER_TYPES,
TypeFeatureLayer,
TypeJsonValue,
TypeJsonObject,
Typ... |
<gh_stars>0
import { Component, OnInit } from '@angular/core';
import { UserDataService } from '../../providers/user-data.service';
import { mongooseUser, postTask, tag } from '../../interfaces/interfaces';
import { CalendarsService } from '../../providers/calendars.service';
import { FormBuilder, Validators, FormGroup... |
<reponame>youngjin-k/willread
import dayjs from 'dayjs';
import * as Notifications from 'expo-notifications';
import { useCallback, useMemo } from 'react';
import { useDispatch, useSelector } from 'react-redux';
import calculateTimeLeft from '../../components/articleCard/calculateTimeLeft';
import {
MAX_ARTICLE_LIST... |
<filename>src/rpc/listen_pb.d.ts
// package: rpc
// file: listen.proto
import * as jspb from "google-protobuf";
import * as common_pb from "./common_pb";
export class ListenRequest extends jspb.Message {
clearConnectHeadersList(): void;
getConnectHeadersList(): Array<string>;
setConnectHeadersList(value: Array<... |
<filename>src/importers/jiraCsv/JiraCsvImporter.ts
import { exit } from 'process';
import { Importer, ImportResult } from '../../types';
const fs = require('fs');
const csv = require('csvtojson');
const j2m = require('jira2md');
type JiraPriority = 'Highest' | 'High' | 'Medium' | 'Low' | 'Lowest';
interface JiraIssue... |
import { defaults, forEach } from 'lodash'
import { addClass, removeClass } from '../../utils'
const defaultOptions = {
class: { // Default classes added on elements
button: 'mwz-floor-button',
container: 'mwz-ctrl-floors',
hasDirection: 'mwz-hasDirection',
loadingFloor: 'mwz-loading',
selected... |
import { Buffer } from "buffer/";
import { date } from "phpdate";
import {
flush as flushLogsToNR,
flushToString as flushLogs,
logError,
logInfo,
} from "./newRelic";
import { getSensorData, SensorResults } from "./purpleAir";
// var bindings
declare const SMS_RECIPIENTS: string;
declare const TWILIO_FROM: stri... |
/******************************************************************************/
/* The following parts of CN LSP Server contain new code released under the */
/* BSD 2-Clause License: */
/* * `src/cn.ml` ... |
import { isArray, isString, isEmpty } from 'lodash';
import {
ComponentRef,
Directive,
ElementRef,
HostListener,
Inject,
Injector,
Input,
OnChanges,
OnDestroy,
OnInit,
Optional,
SimpleChange,
} from '@angular/core';
import { DOCUMENT } from '@angular/common';
import { AbstractControl } from '@an... |
import { Checkbox, Col, Modal, Row } from 'antd';
import React from 'react';
import { DialogFooter } from '../../../ui/DialogFooter';
import { Gutter } from 'antd/lib/grid/row';
import { StateEditorParams, useStateEditor } from '../../../../hooks/useStateEditor';
import { State, String, characterTemplate, simpleId, str... |
import React, { useEffect, useState } from 'react';
import { Divider, message, Modal, Typography } from 'antd';
import ProCard from '@ant-design/pro-card';
import { Tree } from 'antd';
import type { Xmind } from '@/pages/XMind/components/XMindMenu/xmind-typings';
import { getXmindTree } from '@/pages/XMind/service';
im... |
import { gql, makeExtendSchemaPlugin } from 'graphile-utils'
import { QueryConfig } from 'pg'
import { isNil } from 'ramda'
import { OurGraphQLContext } from '../../middleware/installPostGraphile'
import { generateSQLPreparedValues } from '../../utils/dbHelpers'
import makeCid from '../../utils/snCid'
export interface ... |
import { PTCFile } from "./PTCFile";
import { PTCFileType } from "./PTCFileType";
import { PTCCHRFile } from "./PTCCHRFile";
import { PTCCOLFile, PTCColor } from "./PTCCOLFile";
class PTCSCRFile extends PTCFile {
public Tiles: PTCTile[];
public constructor() {
super();
this.Tiles = new Array<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.