text
stringlengths
3.08k
15.5k
import { K8sComponentApi } from 'src/core/k8s-component-api'; import { CategoryComponent, CategoryComponentWrapper, CategoryComponentMetadataDef } from './ui-components'; import { K8sConceptComponent } from 'src/core/k8s-concept-component'; import { K8sComponentKind } from 'src/core/k8s-component-kind'; import { K8sCom...
<reponame>kevanantha/aksara-ui /* eslint-disable no-underscore-dangle */ import css, { CssFunctionReturnType } from '@styled-system/css'; import { createShouldForwardProp, props } from '@styled-system/should-forward-prop'; import { layout, LayoutProps, flexbox, FlexboxProps, position, PositionProps, grid,...
import React, { useState } from 'react'; import { Table, Button, Message } from '@arco-design/web-react'; import { IconCaretRight, IconHeart, IconHeartFill, IconSound } from '@arco-design/web-react/icon'; import { IMusic, IArtistItem } from '../../api/types/song'; import { timeToMinute } from 'src/utils/timetrans'; imp...
import { DbSet } from '@lib/structures/DbSet'; import { SkyraCommand } from '@lib/structures/SkyraCommand'; import { cdnFolder } from '@utils/constants'; import { fetchAvatar } from '@utils/util'; import { Canvas } from 'canvas-constructor'; import { promises as fsp } from 'fs'; import { CommandStore, KlasaMessage, Kla...
<gh_stars>1-10 /*! * jQuery.scrollTo * Copyright (c) 2007 <NAME> - aflesler ○ gmail • com | https://github.com/flesler * Licensed under MIT * https://github.com/flesler/jquery.scrollTo * @projectDescription Lightweight, cross-browser and highly customizable animated scrolling with jQuery * @author <NAME> * @vers...
/** * @license * MIT License * * 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,...
<reponame>dgoemans/nexe import { Stats } from 'fs' import { ok } from 'assert' import { dirname, resolve, normalize, basename } from 'path' const binary = (process as any).__nexe as NexeBinary ok(binary) const manifest = binary.resources const directories: { [key: string]: { [key: string]: boolean } } = {} const isStr...
import { config, param } from './setting'; import { Component } from './component'; import { Scene } from './canvas'; import { DOMType } from './domController'; // import { Play as WasmPlay } from '../wasm/pkg/wasm.js'; export namespace Animation { /** ### Animation.Operation * Define numerical operations of Stat...
/*! * © 2020 Atypon Systems 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 i...
<filename>src/policies/advanced/SendRequest.ts<gh_stars>100-1000 import * as axios from 'axios'; import { cloneDeep, get, set } from 'lodash'; import { ExecutionContext, Policy, PolicyCategory, Scope, YapPolicy } from '../../'; import policyManager from "../index"; const allowedPolicies = ["set-method", "set-header", ...
import { Type } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { map, take } from 'rxjs/operators'; import { AppearanceAnimation, DialogLayoutDisplay, DisappearanceAnimation, VerticalPosition } from '../../../core/enums'; import { DataControl, Sizes } from '../../../core/global-classes...
<filename>src/renderer/managers/themes.ts<gh_stars>10-100 import LoggerModule from "@common/logger"; import SettingsRenderer from "@modules/settings"; import Storage from "@modules/storage"; import AddonPanel from "@ui/addons/panel"; import Utilities from "@modules/util"; import Module from "@node/module"; import Requi...
import React from "react"; import { useForm, Controller, FieldError } from 'react-hook-form'; import { InputText } from 'primereact/inputtext'; import { InputTextarea } from "primereact/inputtextarea"; import { classNames } from "primereact/utils"; import { Button } from "primereact/button"; import { DataTable } from...
import { useAdminProduct, useAdminProductTypes, useAdminStore, useAdminUpdateVariant, } from "medusa-react" import { ProductVariant } from "medusa-react/dist/types" import React, { useEffect, useState } from "react" import { useForm } from "react-hook-form" import TrashIcon from "../../../components/fundamental...
<reponame>oguzhanaltan/geofire-js import * as chai from 'chai'; import * as firebase from 'firebase'; import { GeoFire } from '../src/geoFire'; import { GeoQuery } from '../src/geoFire/geoQuery'; /*************/ /* GLOBALS */ /*************/ const expect = chai.expect; // Define examples of valid and invalid param...
<filename>engine/core/src/scene1/ani/InteractiveManager.ts import {Entity} from "../../ecs/Entity"; import {Interactive} from "./Interactive"; import {hitTest} from "../display/hitTest"; import {AppKeyboardEvent, AppMouseEvent, AppTouchEvent} from "../../app/InputState"; import {Vec2} from "@highduck/math"; import {Eng...
import { KortStatus, Meldekort, MeldekortRad, SendtMeldekort, } from '../types/meldekort'; import { Innsendingstyper } from '../types/innsending'; import { hentDatoPeriode, hentUkePeriode } from './dates'; import { isEmpty } from 'ramda'; import { Person } from '../types/person'; export const erMeldekortSendtI...
import { NgtOrbitControlsModule } from '@angular-three/controls/orbit-controls'; import { NgtCoreModule } from '@angular-three/core'; import { NgtLineGeometryModule } from '@angular-three/core/geometries'; import { NgtGroupModule } from '@angular-three/core/group'; import { NgtAxesHelperModule } from '@angular-three/co...
<filename>src/index.ts "use strict" import path from "path" import defenderPath from "defender-path" import execa from "execa" import isAdmin from "is-admin" import cleanSplit from "clean-split" import fs from "fs-extra" import ow from "ow" import is from "@sindresorhus/is" /** @private */ async function forceAdmin()...
<filename>src/lib/index.ts import { Node } from './node'; import { ShowTreeConfig } from './show-tree-config'; import './styles/styles.scss'; import { FilterTreeResult } from './filter-tree-result'; export function start(treeContainerId: string, tree: Node[], config: ShowTreeConfig = { "searchDebo...
<filename>src/Documents/Session/IDocumentQuery.ts import {QueryResultsWithStatistics} from "./DocumentQuery"; import {QueryResultsCallback, EntityCallback, EntitiesCountCallback} from "../../Typedef/Callbacks"; import {IRavenObject} from "../../Typedef/IRavenObject"; import {DocumentConstructor, DocumentConventions, Do...
<filename>src/RPGPanel.ts class UserPanel extends egret.DisplayObjectContainer{ private heroPicture : egret.Bitmap; private axeIcon : egret.Bitmap; private helmetIcon : egret.Bitmap; private braceletIcon : egret.Bitmap; private armorIcon : egret.Bitmap; private hero : Hero; private heroInfoText : string; private heroT...
import cordovaCommon from 'cordova-common'; import elementtree from 'elementtree'; import {execa} from 'execa'; import glob from 'fast-glob'; import yaml from 'js-yaml'; import {ListrTask} from 'listr2'; import {createRequire} from 'module'; import _ from 'lodash'; import path from 'path'; import {findPkg, PackageJson}...
<gh_stars>1-10 /// <amd-dependency path="mayhem/templating/html!./AttachmentPreviews.html" /> /// <amd-dependency path="mayhem/templating/html!./QuickReply.html" /> import appUi = require('../interfaces'); import appUtil = require('../../util'); import Contact = require('../../models/Contact'); import Event = require(...
<reponame>acarlson99/j "use strict"; import { Board, EDirection } from "./board"; import { Card } from "./card"; import { EScreenType, IController } from "./controller"; import { Cursor } from "./cursor"; import { colorDeck, Deck } from "./deck"; import { Hand, Player } from "./player"; import { Updater } from "./upda...
// See https://cesium.com/blog/2020/04/09/kml-collada-metadata/ for supported KML format import { Axis, Cartographic, Math as CesiumMath, Matrix4, Transforms, } from "cesium"; import * as fse from "fs-extra"; import * as path from "path"; import * as xml2json from "xml2json"; import { IndexesConfig, parseInd...
import { Dispatch, SetStateAction } from 'react' import { DATE_TIME_FORMAT, notification, unformatCard, unformatCardExpires } from '@reapit/elements-legacy' import { PaymentEmailRequestModel } from './payment-request-modal' import { reapitConnectBrowserSession } from '../../core/connect-session' import { generateEmai...
<gh_stars>1-10 import { join } from 'path'; import { DefinePlugin, optimize } from 'webpack'; import ExtractTextWebpackPlugin from 'extract-text-webpack-plugin'; import WebpackNodeExternals from 'webpack-node-externals'; import HtmlWebpackPlugin from 'html-webpack-plugin'; import autoprefixer from 'autoprefixer'; impor...
<filename>frontEnd/src/app/pages/rating/rating-page/rating-page.component.ts import { Router, ActivatedRoute, NavigationEnd, Params, ParamMap } from '@angular/router'; import { OnInit, Component } from '@angular/core'; import { RatingService } from '../service/rating.service'; import { Rating, Review } from "../"; impo...
import React from 'react'; import { Modal, Select, Form, Input, Icon, Radio, } from 'antd'; import umbrella from 'umbrella-storage'; import { FormComponentProps } from 'antd/lib/form/Form'; import { setAlarm } from '~/ajax'; import { getRandomInt } from '~/utils' import { ModalWarpper } from './styled'; ty...
import {FocusKeyManager} from '@angular/cdk/a11y'; import {OverlayRef} from '@angular/cdk/overlay'; import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostListener, Inject, Input, OnDestroy, OnInit, Optional, Output, QueryList, ViewChild, ViewChildren } from '@angular/core'; ...
<gh_stars>1-10 import { Document } from './document' import { SortData } from './types/sortdata' function nestedProperty(doc:Document, key:string):any { key = key.replace(/\[(\w+)\]/g, '.$1') key = key.replace(/^\./, '') let parts:string[] = key.split('.') let val:any = doc parts.forEach(k => { // Is k ...
<reponame>lambda-land/variational-editor-atom 'use babel'; import $ from 'jquery'; import path from 'path'; import { BranchCondition, defbranch, ndefbranch } from './dimension-decoration-manager'; export type DimensionStatus = "DEF" | "NDEF" | "BOTH" export interface DimensionUI { name: string; color: strin...
import {Action, combineReducers} from 'redux'; import {omit, without} from 'lodash'; import {AnyAppProperties, AnyProperties, DriveMetadata} from '../util/googleDriveUtils'; import {buildTutorialMetadata} from '../tutorial/tutorialUtils'; // =========================== Action types and generators export enum FileInd...
// Type definitions for inversify 2.0.0-beta.1 // Project: https://github.com/inversify/InversifyJS // Definitions by: inversify <https://github.com/inversify> // Definitions: https://github.com/borisyankov/DefinitelyTyped /// <reference path="../bluebird/bluebird.d.ts" /> /// <reference path="../harmony-proxy/harmony...
<filename>packages/postgres-api/__tests__/test-utils/index.ts import { config } from 'dotenv'; import fs from 'fs'; import path from 'path'; import rq from 'request-promise-native'; import { Connection, createConnection, getRepository } from 'typeorm'; import util from 'util'; import { DefaultRegions, UserRole } from '...
<reponame>somefb/tg-umanager-bot<filename>src/repo.ts import fs from "fs"; import { User } from "typegram"; import ChatItem from "./chatItem"; import RepoGoogleDrive from "./googleDrive/repoGoogleDrive"; import onExit from "./onExit"; import UserItem from "./userItem"; interface ISavedRepo { version?: number; chat...
import { PrincipalMap, MatchResourceBasedInterface, ResourceBasedType } from './types'; import { Matcher } from './Matcher'; import { Statement } from './Statement'; import { applyContext } from './utils/applyContext'; class ResourceBased<T extends object> extends Statement<T> { private principal?: PrincipalMa...
import {AdapterFilterActions, AdapterOpts, AdapterQuery, MapperUtils} from './mapper.utils'; export interface ItemsJsSelectQueryData { page: number; per_page: number; sort?: string; filters?: {}; query: string; } export interface ItemsJsConfig { searchableFields: string[]; aggregations: {}...
var unified = require('unified'); var vfile = require('to-vfile'); var report = require('vfile-reporter'); const { produce } = require('immer'); const slugify = require('@sindresorhus/slugify'); const { promisify } = require('util'); const fs = require('fs'); const path = require('path'); const readdir = promisify(fs.r...
// deno-lint-ignore-file no-explicit-any import { defaultFieldResolver, GraphQLFieldResolver, GraphQLSchema, } from "../../deps.ts"; import { MapperKind, mapSchema } from "../utils/mod.ts"; // import { ValueOrPromise } from 'value-or-promise'; // https://github.com/yaacovCR/value-or-promise/blob/main/src/ValueO...
<reponame>NickName039X/vue-demo // Declare a tuple type let x: [string, number]; // Initialize it x = ["hello", 10]; // OK // Initialize it incorrectly // x = [10, 'hello']; // Error console.log(x[0].substr(1)); // OK // console.log(x[1].substr(1)); // Error, 'number' does not have 'substr' // ts 2.6版本之前可以对越界的元素赋值,2....
const DESC = 'enter description here'; export const OPTION = Object.freeze({ BOLD: "bold", ITALIC: "italic", SIZE: "type", STRIKE: "minus", LIST: "list", CHECK_BOX: "check-square", BLOCK_QUOTE: "chevron-right", CODE: "code", TABLE: "columns", LINK: "link", IMAGE: "image" }) const END_QUOTES = "``...