text stringlengths 3.08k 15.5k |
|---|
import React, { useState } from 'react';
import { Grid, Notification, Button } from '@alifd/next';
import { arrayMove } from 'react-sortable-hoc';
import Material from '@iceworks/material-ui';
import { LocaleProvider } from '@/i18n';
import { useIntl, FormattedMessage } from 'react-intl';
import { IMaterialData } from ... |
import { forwardRef, Inject, Injectable } from '@nestjs/common'
import { ExcelHelperService } from './excel-helper.service'
import { TeachersService } from './teachers.service'
import {
CourseNum,
ExcelSubject,
Table,
Semester,
SubjectTypes,
ExcelTeacherPayload,
GroupData,
SubjectHours,
TeacherInfo,
... |
// *** 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";
// Export members:
export * from "./addon";
export * from "./bu... |
import * as React from 'react';
import {
GridContainerProps,
GridOptions,
GridRenderColumnsProps,
GridVirtualizationApi,
GridApiRef,
} from '../../../models/index';
import { isDeepEqual } from '../../../utils/utils';
import { useLogger } from '../../utils/useLogger';
import { GRID_COLUMNS_CHANGE, GRID_DEBOUNC... |
<filename>client/src/extension.ts<gh_stars>1-10
import * as path from 'path';
import {
Range,
window,
commands,
workspace,
WorkspaceEdit,
ExtensionContext,
CodeAction,
ProviderResult,
Diagnostic,
CodeActionContext
} from 'vscode';
import {
LanguageClient,
LanguageClie... |
/**
* Copyright (c) 2019 <NAME>
* Copyright (c) 2019 <NAME>
*
* This software is proprietary and owned by <NAME>.
*
* This software was based on https://github.com/wrsulliv/NodeStarter,
* licensed under the MIT license.
*/
'use strict';
import * as elastic from 'elasticsearch';
import { Response, Request, Nex... |
import React, { useEffect, useRef, useState } from "react";
import { useFrameLoop } from "./utils/frameLoop";
//import styled from "styled-components";
import "./index.css";
export const Game: React.FC<Props> = ({}) => {
const size = 512;
const gridSize = 8;
const initialSpeed = 8;
const canvas = useRef<HTMLCa... |
import { Cache } from '@stoplight/json-ref-resolver';
import { ICache } from '@stoplight/json-ref-resolver/types';
import { extname, join } from '@stoplight/path';
import { Optional } from '@stoplight/types';
import { readFile, readParsable } from '../fs/reader';
import { createHttpAndFileResolver, IHttpAndFileResolver... |
<gh_stars>10-100
import { createHash } from 'crypto';
import * as fs from 'fs';
import { join } from 'path';
import * as yargs from 'yargs';
import * as zlib from 'zlib';
import { checksumIndices, CodeBuilder } from '@phensley/cldr-core';
import { getMain } from '../../cldr';
import { Encoder, EncoderMachine } from '.... |
import React from 'react';
export interface BodyGetBuildingsParams {
0: number;
}
export interface BodyGetBuildingsResponse {
body: {
surface_image: string;
};
buildings: {
[index: string]: {
efficiency: number;
name: string;
x: number;
image: string;
y: number;
lev... |
<gh_stars>1-10
export declare const MAT_SELECTION_LIST_VALUE_ACCESSOR: any;
export declare class MatList extends _MatListMixinBase implements CanDisableRipple, OnChanges, OnDestroy {
_stateChanges: Subject<void>;
constructor(_elementRef: ElementRef<HTMLElement>);
_getListType(): 'list' | 'action-list' | nu... |
// this engages a babel macro that does cool emotion stuff (like source maps). See https://emotion.sh/docs/babel-macros
import css from "@emotion/css/macro";
// these two lines make the css prop work on react elements
import { jsx } from "@emotion/core";
/** @jsx jsx */
import React from "react";
import Table from "@m... |
<reponame>AvivBenchorin/OpenSearch-Dashboards<filename>src/core/public/ui_settings/ui_settings_client.ts
/*
* 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.
*/
/*
* Lice... |
<reponame>fossabot/faasjs
import {
createServer, IncomingMessage, Server as HttpServer
} from 'http'
import { Logger } from '@faasjs/logger'
import { existsSync } from 'fs'
import { loadConfig } from '@faasjs/load'
import {
resolve as pathResolve, sep, join
} from 'path'
import { HttpError } from '@faasjs/http'
imp... |
import React, { useState } from 'react';
import { Dispatch } from '@/types';
import {
DependentSQLGenerator,
FrequentlyUsedColumn,
} from '@/dataSources/types';
import { addColSql } from './ModifyActions';
import { showErrorNotification } from '../../Common/Notification';
import gqlPattern, { gqlColumnErrorNotif } ... |
import { Component, OnInit } from '@angular/core';
import { Prestation, PrestationService } from '../core/prestation.service';
import { UserService, User } from '../core/user.service';
import { ActivatedRoute, Router } from '@angular/router';
import { environment } from 'src/environments/environment';
@Component({
s... |
<filename>packages/metadata-core/src/folderUtil.ts<gh_stars>0
const os = require('os');
const fs = require('fs');
const path = require('path');
const yaml = require('js-yaml');
import { hasParent, SteedosMetadataTypeInfoKeys as TypeInfoKeys, getMetadataNameByExt,
getMetadataNameByDirectory, getFileinfoByFilename} ... |
<reponame>PatrickHeneise/opstrace
/**
* Copyright 2020 Opstrace, 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 r... |
import React, { PureComponent } from 'react';
import { Container, Header, Image, Divider, Grid, Rating } from 'semantic-ui-react';
import { graphql, Link } from 'gatsby';
import Layout from '../components/layout';
import CommonCrewData from '../components/commoncrewdata';
type BigBookCrewProps = {
markdownRemark: a... |
import { useMutation, useQuery } from '@apollo/client';
import { Drawer, Snackbar, Typography } from '@material-ui/core';
import { Alert } from '@material-ui/lab';
import { ButtonFilled, ButtonOutlined, TextButton } from 'litmus-ui';
import moment from 'moment';
import React from 'react';
import { useTranslation } from... |
// "Super Rotation Sysetm"
//
// There is a standard way to handle Tetris piece rotation and "wall kicks".
// Here's the spec for that:
//
// https://tetris.wiki/Super_Rotation_System
//
// The magical implementation described at the end is reproduced here.
import { parseRegion, ShapeName, Shape, Region, RotationIndex... |
<reponame>BeaSMS/NextWeek-Ecoleta
/**
* Utilities for working with `osascript` which runs AppleScript on Macs
*/
'use strict';
import execAsync, { ExecAsyncOptions } from 'exec-async';
import path from 'path';
import spawnAsync, { SpawnOptions, SpawnResult } from '@expo/spawn-async';
import util from 'util';
functi... |
import {useNavigation} from "@react-navigation/native";
import {StackNavigationProp} from "@react-navigation/stack";
import * as React from "react";
import styled from "styled-components/native";
import {ConversationType} from "../../backend/src/resolvers-types";
import BottomSheet, {
BottomSheetButton,
BottomShee... |
<filename>src/pages/index/elements/tv-room.ts
/* 3rd party */
import * as THREE from "three";
import { environment } from "../../../../environment.js";
const GLTFfLoader = require("three-gltf-loader");
/* Three.js */
export class TVRoom {
constructor() {
this._camera = new THREE.PerspectiveCamera(70, windo... |
<gh_stars>0
import { BaseVisitor, ParsedConfig, RawConfig } from './index';
import * as autoBind from 'auto-bind';
import { FragmentDefinitionNode, print, OperationDefinitionNode } from 'graphql';
import { DepGraph } from 'dependency-graph';
import gqlTag from 'graphql-tag';
import { toPascalCase } from '@graphql-codeg... |
import { generateMnemonic, MnemonicLanguages, MnemonicStrength } from '@celo/utils/src/account'
import CryptoJS from 'crypto-js'
import * as _ from 'lodash'
import { useAsync } from 'react-async-hook'
import * as bip39 from 'react-native-bip39'
import { useDispatch, useSelector } from 'react-redux'
import { showError }... |
/**
* A set of functions to coerce OpenAPI 3 schema into AsyncAPI 2.2 schema
*/
import { OpenApiV3, SchemaObject, PathItemObject } from "@airtasker/spot/build/lib/src/generators/openapi3/openapi3-specification";
import cloneDeep from "lodash.clonedeep";
import { AsyncAPISchema } from "./schema";
type NoneType = nul... |
/*
* File: find.tsx
* Created Date: 11/10-21
* Last Modified: 22/10-21 by <NAME>
*
* Copyright (c) 2021 Tom's Data AS https://www.tomsdata.no
*/
import { ChangeEvent, useEffect, useState } from "react"
import { Button, ButtonGroup, Card, Col, Form, Modal, OverlayTrigger, Pagination, Popover,... |
<gh_stars>1-10
// Get the supported locales for moment
import 'moment/locale/de';
import 'moment/locale/en-gb';
import 'moment/locale/es';
import 'moment/locale/fr';
import 'moment/locale/it';
import 'moment/locale/cs';
import 'moment/locale/pt-br';
import i18n from 'i18n-js';
import moment from 'moment';
import { I18... |
<filename>src/parse.ts
import fs from "fs"
import peg from "pegjs"
import {
PrimitiveType,
IDiagram,
IReference,
getAllAttributes,
isResourceLike,
AnyKind,
isProduces,
isConsumes,
ITag
} from "./treetypes"
import * as path from "path"
export function readFile(...parts: string[]) {
... |
<filename>lib/oauth2/helper.ts
import Url from "url"
import querystring from "querystring"
import Debug from "debug"
import { awaitRedirect, omit, postRequest, ResponseType } from "../utils"
import {
OAuthConfigType,
AuthorizationCodeGrantConfig,
AccessTokenRequestParameter,
ClientCredentialsGrantConfig... |
<gh_stars>0
// Generated by typings
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/a9680ac2efd3add0d38cd0331f30ad497d9dd1e0/should/should.d.ts
// Type definitions for should.js v8.1.1
// Project: https://github.com/shouldjs/should.js
// Definitions by: <NAME> <https://github.com/varju/>, <... |
import * as path from 'path';
import * as vscode from 'vscode';
import { IFileSystem } from '../common/platform/types';
import { ITag } from './contracts';
// tslint:disable:no-require-imports no-var-requires no-suspicious-comment
// tslint:disable:no-any
// TODO: Turn these into imports.
const LineByLineReader = requ... |
<filename>src/interaction/slider.ts
import { IGroup, Slider, VIEW_LIFE_CIRCLE } from '../dependents';
import BBox from '../util/bbox';
import { Scale } from '@antv/scale';
import { clamp, head, last, map, size, throttle, isEmpty } from '@antv/util';
import { ISliderInteractionConfig } from '../interface/config';
import... |
// Depth-first search
import { getBombIndex } from '../App.Functions';
import { dataIsWallNode } from '../helperFunctions/customAttr';
import {
getAttr, getNodeBombInfo, getNodeStartInfo, getNodeTargetInfo,
} from '../helperFunctions/helperFunctions';
import {
animateBombNode, conditionDown, conditionLeft, conditio... |
<gh_stars>1-10
declare const __non_webpack_require__
const {
GraphQLObjectType,
GraphQLScalarType,
parse,
validate,
Kind,
} = (isWebpack => {
if (isWebpack) return require('graphql')
const resolveCwd = require('resolve-cwd')
const graphqlPackagePath = resolveCwd.silent('graphql')
return require(grap... |
<reponame>cfsamson/angular
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {BindingPipe, PropertyWrite, TmplAstReference, TmplAstVariable} from '@angular/comp... |
import React from "react";
import RootLayout from "../components/RootLayout";
import LogoWhiteBackground from "../images/LogoWhiteBackground";
import CallToAction from "../components/CallToAction";
import SwagForm from "../components/SwagForm";
import ExternalLink from "../components/ExternalLink";
const HACKTOBERFEST... |
import {
createOrderPusher,
CustomerInputRequest,
OrderCreatedConfirmation,
PaymentInputRequest,
} from '@crystallize/js-api-client';
import { TStoreFront } from '@crystallize/js-storefrontaware-utils';
import {
Cart,
CartItem,
stripePaymentIntentPayload,
handleStripeCreatePaymentIntentR... |
<reponame>sala-daeng/xmldsigjs
import * as Asn1Js from "asn1js";
// @ts-ignore
import { Certificate } from "pkijs";
import { ECDSA } from "../algorithms";
import { Application } from "../application";
export type DigestAlgorithm = string | "SHA-1" | "SHA-256" | "SHA-384" | "SHA-512";
/**
* List of OIDs
* Source: ht... |
<gh_stars>1-10
import { LitElement, html, css, property, customElement } from 'lit-element';
import { repeat } from 'lit-html/directives/repeat';
import { classMap } from 'lit-html/directives/class-map'
import "@material/mwc-checkbox";
import "@material/mwc-icon-button";
import './dismissable-item';
import { style as ... |
<reponame>ed-ilyin/azure-functions-docker
import axios from "axios";
import chalk from "chalk";
import path from "path";
import shell from "shelljs";
if (process.argv.length < 2) {
console.error(chalk.red.bold("expected an image name"));
process.exit(1);
}
const storagePath =
"https://functionsdockertests.blob.... |
<reponame>HungryBunny-wei/rabbit-deisgn
import { NzTreeBaseService } from './nz-tree-base.service';
import { NzTreeNodeComponent } from './nz-tree-node.component';
export interface NzTreeNodeOptions {
title: string;
key: string;
icon?: string;
isLeaf?: boolean;
checked?: boolean;
selected?: boolean;
sele... |
import passport from 'passport';
import uuid from 'uuid';
import { RouteHandlerFnc } from '../../types/customTypes';
import User from './users.model';
import Invitation from '../invitations/invitations.model';
import EmailVerification from '../emailVerification/emailVerification.model';
import { sendVerificationLink } ... |
<reponame>NicolasNewman/DigiFolio<filename>src/api/RedditAPI.ts
import Snoowrap, { RedditUser, Submission } from 'snoowrap';
import IAPI from './IAPI';
export interface RedditDataModel {
something: any;
profile: RedditUserInfo;
karma_distribution: RedditKarmaBySub[];
submissions: RedditSubmission[]; //... |
import * as React from 'react';
import { Button, Popover, PopoverPosition } from '@patternfly/react-core';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { ThunkDispatch } from 'redux-thunk';
import { KialiAppState } from 'store/Store';
import ReactResizeDetector from 'react-r... |
import { Component, Inject, OnInit } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import {
GroupsManagerService,
MembersManagerService,
RichMember,
} from '@perun-web-apps/perun/openapi';
import { NotificatorService } from '@perun-web-apps/perun/services';
import... |
import { computed, ref, reactive, Ref, CSSProperties } from 'vue';
import { isFunction, isPlainObject, throttle } from 'lodash-es';
import getPrefixCls from '../_util/getPrefixCls';
import { getCellValue } from './helper';
import useTableLayout from './useTableLayout';
const prefixCls = getPrefixCls('table');
import ... |
// This file is part of the Corinthia project (http://corinthia.io).
//
// See the COPYRIGHT.txt file distributed with this work for
// information regarding copyright ownership.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// ... |
import { useIbuki } from '../../../common-utils/ibuki'
import { utilMethods } from '../../../common-utils/util-methods'
import { map } from 'rxjs/operators';
import moment from 'moment'
import { manageFormsState } from '../../../react-form/core/fsm'
import { manageEntitiesState } from '../../../common-utils/esm'
// imp... |
const en = {
nomeApp: 'Solar Journey',
errosAuth: {
emailInvalido: 'Invalid email',
emailJaCadastrado: 'Email already in use',
senhaFraca: 'Password must be at least 6 characters long',
senhaErrada:
'Incorrect password. Try again or click "Forgot password?" to reset it',
emailNaoEncontrado... |
/* eslint-disable no-await-in-loop, no-async-promise-executor,consistent-return,@typescript-eslint/no-inferrable-types */
import { spawn, ChildProcess } from 'child_process'
import { message } from 'antd'
import { download } from '@electron/get'
import { remote } from 'electron'
import { MosaicNode, MosaicDirection } ... |
import { Stream, default as xs } from "xstream";
import { timer, EMPTY, of, from, merge, concat, Observable } from "rxjs";
import {
switchMap,
map,
filter,
switchMapTo,
shareReplay,
distinctUntilChanged,
} from "rxjs/operators";
import { Reducer, StateSource } from "@cycle/state";
import { me... |
import { getCoordinate } from '@antv/coord';
import { getScale } from '@antv/scale';
import Interval from '../../../src/geometry/interval';
import { getTheme } from '../../../src/theme/';
import { createCanvas, createDiv } from '../../util/dom';
import { createScale } from '../../util/scale';
import 'jest-extended';
... |
/* eslint-disable @typescript-eslint/no-explicit-any */
import EchoUtils from '@equinor/echo-utils';
import { Search as EdsSearch } from '@equinor/eds-core-react';
import React, { CSSProperties, useEffect, useRef, useState } from 'react';
import { VariableSizeList } from 'react-window';
import { Icon } from '../../ele... |
<reponame>sidsarasvati/graphql-code-generator<filename>packages/presets/graphql-modules/src/utils.ts
import {
DefinitionNode,
DocumentNode,
FieldDefinitionNode,
InputValueDefinitionNode,
Kind,
NamedTypeNode,
TypeNode,
} from 'graphql';
import { Source } from '@graphql-tools/utils';
import parse from 'pars... |
import { map, get } from "lodash";
import ILayerView from "../layer/ILayerView";
import { Layer, geoJSON as geoJSONLayer, GeoJSON as GeoJSONLeaflet, LayerGroup, marker } from "leaflet";
import { inject, injectable } from "inversify";
import { GeoJSONCollection, GeoJSONFeature, ClusterProps, TooltipDetail, PopupContext ... |
import {
ChangeDetectorRef,
Component,
ElementRef,
EventEmitter,
Input,
NgZone,
Output,
QueryList,
ViewChild,
ViewChildren
} from '@angular/core';
import { IconTabBarBase } from '../icon-tab-bar-base.class';
import { IconTabBarItem } from '../../interfaces/icon-tab-bar-item.inter... |
import $ from 'jquery';
import { DiffFinder, Finder, UmlContent, UmlDiffContent } from './finder';
export class GitHubCodeBlockFinder implements Finder {
private readonly URL_REGEX = /^https:\/\/github\.com/;
canFind(webPageUrl: string): boolean {
return this.URL_REGEX.test(webPageUrl);
}
async find(web... |
<reponame>joshmarinacci/argon
/// <reference types="cesium" />
import { SerializedEntityState } from './common';
import { Entity, JulianDate, PerspectiveFrustum, PerspectiveOffCenterFrustum, Quaternion, Cartesian3, ReferenceFrame, Matrix4, Transforms, Cartographic } from './cesium/cesium-imports';
export * from './util... |
<reponame>bassquez/gesproyect
import { Component, OnInit, Inject } from '@angular/core';
import { MAT_DIALOG_DATA, MatDialogRef, MatTableDataSource } from '@angular/material';
import { Proyecto } from '../../../core/models/proyecto.model';
// import { GanttComponent, GanttConfiguration, GanttTaskItem, GanttTaskLink, Ga... |
<reponame>LavaDesu/ohayou
export const BeatmapApproval = {
Approved: "approved",
Loved: "loved",
Qualified: "qualified",
Ranked: "ranked"
} as const;
export const BeatmapLeaderboardScope = {
Country: "country",
Global: "global",
Friend: "friend"
} as const;
export const BeatmapsetO... |
/*
* Copyright (C) 2019 Toshiba Corporation
* SPDX-License-Identifier: Apache-2.0
*/
import { DBaseStateSetImpl } from "./d-base-state-set-impl";
import { DFontStyle, DFontVariant, DFontWeight, DThemeFont } from "./d-font";
import { DThemes } from "./theme/d-themes";
export type DDynamicTextAlign = "left" | "cente... |
import type { OptionsType, MicroAppConfigType, lifeCyclesType, plugins, fetchType, AppInterface } from '@micro-app/types'
import { defineElement } from './micro_app_element'
import preFetch, { getGlobalAssets } from './prefetch'
import { logError, logWarn, isFunction, isBrowser, isPlainObject, formatAppName, getRootCon... |
/*
Based on this libraries:
https://github.com/alexcaza/export-to-csv (Author: <NAME>)
https://github.com/javiertelioz/angular2-csv (Author: <NAME>)
Modified:
- export to blob
*/
export interface Options {
filename?: string;
fieldSeparator?: string;
quoteStrings?: string;
decimalSe... |
import { Box, Heading, Text } from 'grommet';
import { normalizeColor } from 'grommet/utils';
import React from 'react';
import { defineMessages, FormattedMessage } from 'react-intl';
import {
NavLink,
Redirect,
Route,
Switch,
useParams,
useRouteMatch,
} from 'react-router-dom';
import styled from 'styled-c... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 - present Instructure, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the ri... |
<reponame>ikrima/vscode-zig
'use strict';
import * as vsc from 'vscode';
import * as os from 'os';
import { strings, types } from '../utils/common';
export enum LogLevel {
off = 'off',
error = 'error',
warn = 'warn',
info = 'info',
trace = 'trace',
}
type LogLevelInt = -1 | 0 | 1 ... |
<gh_stars>100-1000
import * as assert from 'assert';
const glob = require('glob');
import * as t from 'babel-types';
import * as fs from 'fs';
import * as tmp from 'tmp';
import { spawnSync } from 'child_process';
import * as continuationRTS from '@stopify/continuations-runtime/dist/src/runtime/runtime';
import { compi... |
<reponame>yamanoku/acot
import fs from 'fs';
import path from 'path';
import { promisify } from 'util';
import type {
FastifyInstance,
FastifyRequest,
FastifyReply,
FastifyError,
FastifyLoggerInstance,
} from 'fastify';
import fastify from 'fastify';
import fastifyStatic from 'fastify-static';
import mustache... |
import React, { FunctionComponent } from 'react';
import { Document, Page, Text, Image, View, StyleSheet } from '@react-pdf/renderer';
import { ITerminationAgreementPdfProps } from '../../../../../interfaces';
import { AppConfig } from '../../../../../config';
import { languageTranslation } from '../../../../../helpers... |
import { unitSize, unitCss } from "../helper";
import { LayerData } from "../../../src/meaxure/interfaces";
import { scaleSize } from "../../events/helper";
import { propertyType } from "./shared";
export function renderCodeTemplate(layerData: LayerData): string {
if (!layerData.css || !layerData.css.length) retur... |
import firebase from 'firebase-admin';
import * as functions from 'firebase-functions';
import { firestore } from '../lib/firebase';
import { isAuthed } from '../lib/auth';
import { DID } from '../diary';
export type UID = string;
export type Kusa = {
date: Date,
did: DID,
};
export type User = {
displayName: ... |
/*
* Copyright (c) 2020 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... |
import IO from 'socket.io-client'
import platform from 'platform'
import config from '../config/client'
import store from './state/store'
import {
guest,
getDefalutGroupHistoryMessages,
loginByToken,
getLinkmansLastMessages,
getLinkmanHistoryMessages
} from './service'
import {
ActionTypes,
SetLinkmanPro... |
import React, {useEffect, useState} from "react";
import useTheme from "@material-ui/core/styles/useTheme";
import useStyles from "./styles";
import MenuItem from "@material-ui/core/MenuItem";
import FormControl from "@material-ui/core/FormControl";
import Paper from "@material-ui/core/Paper";
import Select from "@ma... |
<reponame>hschimke/WorldOfWarcraft_CraftingProfitCalculator
import { promises as fs } from 'fs';
import got from 'got';
import { resolve } from 'path';
import { parentLogger } from './logging.js';
const logger = parentLogger.child({});
let cache_loaded = false;
const bonuses_cache_fn = 'bonuses.json';
const rank_mapp... |
import {
EventEmitter, Input, Output, AfterContentInit, OnDestroy, Directive, ElementRef
} from '@angular/core';
import { MessageService } from '../message.service';
import { ElectronService } from '../providers/electron.service';
const isReaderReady = {};
@Directive({
selector: 'vizabi'
})
export class VizabiDir... |
import Menu, { MenuItem } from '../../../menu';
import Dropdown from '../../../vc-dropdown';
import type { Tab, TabsLocale, EditableConfig } from '../interface';
import AddButton from './AddButton';
import type { Key } from '../../../_util/type';
import KeyCode from '../../../_util/KeyCode';
import type { CSSProperties... |
<reponame>epgdatacapbon/EPGStation
import * as apid from '../../../../node_modules/mirakurun/api';
import * as DBSchema from './DBSchema';
import DBTableBase from './DBTableBase';
interface ServicesDBInterface extends DBTableBase {
create(): Promise<void>;
drop(): Promise<void>;
insert(services: apid.Servi... |
'use strict';
import tl = require('vsts-task-lib/task');
import fs = require('fs');
import path = require('path');
import { ToolRunner } from 'vsts-task-lib/toolrunner';
const validUrl = require('valid-url');
const decompress = require('decompress');
const decompressTargz = require('decompress-targz');
const Zip = re... |
// Copyright 2018 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.
import 'chrome://resources/cr_elements/cr_toast/cr_toast.js';
import 'chrome://resources/cr_elements/cr_view_manager/cr_view_manager.js';
import 'chrome:/... |
<reponame>softrams/ngx-formly-designer
import { Component, ElementRef, forwardRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';
import { ControlValueAccessor, FormBuilder, FormControl, FormGroup, NG_VALUE_ACCESSOR } from '@angular/forms';
import { FormlyFieldConfig } from '@ngx-formly/core';
import { mer... |
import * as React from 'react'
import styled from '@emotion/styled'
import { css } from '@emotion/react'
import { bridge } from '@src/bridge'
import Portal from '@src/components/Portal'
import { IS_DAANGN_WEBVIEW } from '@src/constants/env'
import IconClose from './icons/Close'
import IconBack from './icons/Back'
ex... |
<reponame>lucasdevargassouza/code-easy-web
import { Utils } from "code-easy-components";
import { TreeInterface } from "../../components/tree-manager/shared/models/TreeInterface";
import { ItemType } from "../../components/code-editor/models/ItemFluxo";
import icon_warning from './../../../assets/icons/icon-warning.pn... |
<gh_stars>0
const en = {
translation: {
baseApiFields: {
id: 'Id',
email: 'Email',
createdAt: 'Created at',
updatedAt: 'Updated at',
},
user: {
name: 'User',
firstName: '<NAME>',
lastName: '<NAME>',
password: 'Password',
role: 'Role',
},
invita... |
import { Slider } from './Slider';
const getBySelector = <T extends HTMLElement>(selector: string): T => {
return document.querySelector(selector) as T;
};
const effects = [
{ id: 0, name: '通常' },
{ id: 1, name: 'グレースケール' },
{ id: 2, name: '2値化' },
{ id: 3, name: '二次微分 laplacian 4方向' },
{ id: 4, name: '二次... |
import * as t from "@babel/types";
export { default as Identifier } from "./inferer-reference";
export function VariableDeclarator() {
const id = this.get("id");
if (!id.isIdentifier()) return;
const init = this.get("init");
let type = init.getTypeAnnotation();
if (type?.type === "AnyTypeAnnotation") {
... |
/**
* Wechaty - https://github.com/chatie/wechaty
*
* @copyright 2016-2018 <NAME> <<EMAIL>>
*
* 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/... |
import React, { Suspense, lazy, useState } from "react";
import sanitize from "../sanitize";
import Form from "react-jsonschema-form";
import "./form.scss";
import ArrayFieldTemplate from "./form_templates/ArrayFieldTemplate";
import ObjectFieldTemplate from "./form_templates/ObjectFieldTemplate";
import CustomFieldTem... |
import {
getInternationalText,
LifeTimeline,
InternationalText,
Skill,
} from '../../../../../config/me.js';
import {
SkillRow,
SKILL_ROW_ALIGNMENT,
} from '../../info-block/skill-row/skill-row.js';
import { TimeLineEntry, TIMELINE_DIRECTION } from './time-line-entry.js';
import { I18NKeys } from '../../../../../... |
<gh_stars>0
import * as I from 'immutable'
import * as now from 'nano-time'
import {
Account,
CallResult,
Client,
EZTZ,
KeyHash,
MuTez,
Name,
Path,
Registry,
Sexp,
StorageResult,
Tez,
TezosClient
} from './types'
import { ExecOutputReturnValue } from 'shelljs'
function updateAccounts (regis... |
import {Subject} from '../../Subject';
import {Subscriber} from '../../Subscriber';
import {Observable} from '../../Observable';
import {Operator} from '../../Operator';
import {Subscription} from '../../Subscription';
import {root} from '../../util/root';
import {ReplaySubject} from '../../subject/ReplaySubject';
impo... |
import React, { useEffect, useState } from 'react'
import {
Document,
Page,
PDFDownloadLink,
Text,
View,
StyleSheet,
PDFViewer,
} from '@react-pdf/renderer'
import dayjs from 'dayjs'
import { Button } from '../../../../common/components/Buttons'
import { QRCodeGEnerator } from '../../../pastelPaperWallet... |
<reponame>shibukawa/react-sample-page-generator
import { readdir, readFile, stat, Stats } from "fs";
import { join, parse } from "path";
import { promisify } from "util";
import * as packageRepo from "package-repo";
import * as toTitleCase from "to-title-case";
import * as ts from "typescript";
const readdirAsync = p... |
<filename>src/app/services/file-system/file-system.service.ts
import { Injectable } from '@angular/core';
import * as config from '../../../assets/config.json';
import DirectoryNode from './FileSystemNodes/DirectoryNode';
import Inode from './FileSystemNodes/Inode';
import FileNode from './FileSystemNodes/FileNode';
im... |
import { Box, Center, Progress, SimpleGrid, Skeleton, Text, useColorMode } from "@chakra-ui/react";
import AddFolderButton from "@components/AddFolderButton";
import FilesEmptyState from "@components/FilesEmptyState";
import FilesTable from "@components/FilesTable";
import FilesTableSkeleton from "@components/FilesTabl... |
import React from "react"
import styled from "styled-components"
import Lottie from "react-lottie"
import {motion} from "framer-motion"
import {FiActivity, FiFilter, FiRotateCcw, FiSliders} from "react-icons/fi"
import FlatCards from "../../components/FlatCards"
import ListHomeworks from "../../components/ListHomework... |
/*
* 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 ... |
/**
* Copyright 2020 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.