text
stringlengths
3.08k
15.5k
<gh_stars>1-10 /* * Power BI Visualizations * * Copyright (c) Microsoft Corporation * All rights reserved. * MIT License * * 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 wi...
import { Panel, Button, Alert, Toast, Modal } from '@hospitalrun/components' import React, { useState } from 'react' import { useSelector, useDispatch } from 'react-redux' import useAddBreadcrumbs from '../../page-header/breadcrumbs/useAddBreadcrumbs' import useTranslator from '../../shared/hooks/useTranslator' import...
<gh_stars>1-10 import * as base64 from 'js-base64'; import * as pako from 'pako'; import pbRoot from '../world.proto'; import { Dimension, overworld, nether } from 'netherlink/dimension'; import { NLStorage } from 'netherlink/storage'; import { World, WorldID } from 'netherlink/world'; /** The local storage is a scarc...
<gh_stars>0 /* eslint-disable complexity */ import fs from 'fs'; import adhan from '../src/Adhan'; import moment from 'moment-timezone'; import CalculationParameters from '../src/CalculationParameters'; function parseParams(data: { method: string; madhab: string; highLatitudeRule: string; }) { let params: Calc...
<gh_stars>1-10 /* University of Illinois/NCSA Open Source License Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved. Developed by: Terrain Data, Inc. and the individuals who committed the code in this file. https://github.com/terraindata/terrain ...
import * as PUPPET from "wechaty-puppet"; import { Contact, log, Message, ScanStatus, WechatyBuilder } from "wechaty"; import PuppetPadlocal from "../src/puppet-padlocal.js"; import config from "config"; import QRCode from "qrcode-terminal"; import { isContactId } from "../src/padlocal/utils/is-type.js"; // log.level(...
import React, { useRef, useState, ReactNode, FC } from "react"; import ReactModal from "react-modal"; import styled, { createGlobalStyle } from "styled-components/macro"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faTimes } from "@fortawesome/free-solid-svg-icons"; import cloneDeep from ...
import fs from 'fs'; import path from 'path'; import fetch, { Response } from 'node-fetch'; import { Readable } from 'stream'; import retry from 'async-retry'; import { FetchFunction, createAuthorizedFetch, withCookies, } from './fetch'; import { CurrenciesData, Idea, Ideas, PointsOfSale, Assortment, ...
import { Type } from '../constants' import { Document } from '../doc/Document' import { Schema } from '../doc/Schema' export class Node { /** A comment on or immediately after this */ comment?: string | null /** A comment before this */ commentBefore?: string | null /** Only available when `keepCstNodes` is ...
<reponame>easterlyme/Angular2UniversalProject<filename>Client/shared/http/http-gateway.service.ts<gh_stars>0 // ** HttpGateway ** import 'rxjs/add/operator/map'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/finally'; import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; ...
<filename>src/mnemonic/mnemonic.ts import nacl from 'tweetnacl'; import { getSecureRandomNumber } from '../primitives/getSecureRandom'; import { hmac_sha512 } from '../primitives/hmac_sha512'; import { KeyPair } from '../primitives/nacl'; import { pbkdf2_sha512 } from '../primitives/pbkdf2_sha512'; import { wordlist } ...
import React, { FC, useEffect, useState } from 'react'; import I18n from '@iobroker/adapter-react/i18n'; import { Box, CheckBox, FormField } from 'grommet'; import TextFormHook from '../hooks/TextFormHook'; import * as yup from 'yup'; import { FormProvider, useForm } from 'react-hook-form'; import { yupResolver } from ...
import { In, getConnection } from 'typeorm'; import { api } from '../../barrels/api'; import { entities } from '../../barrels/entities'; import { enums } from '../../barrels/enums'; import { helper } from '../../barrels/helper'; import { proc } from '../../barrels/proc'; import { store } from '../../barrels/store'; imp...
<gh_stars>0 let __ = require('underscore'); import * as io from 'socket.io-client'; import { logging, Logger } from '../common/logging'; import { Actor } from './actor'; let monitor = require('../monitor/monitor'); let fs = require('fs'); let util = require('../common/util'); let STATUS_INTERVAL = 10 * 1000; // 10 sec...
<reponame>jpellizzari/lua-in-js import { Table } from '../Table' import { LuaType, coerceToBoolean, coerceArgToNumber, coerceArgToString, coerceArgToTable, coerceArgToFunction } from '../utils' import { LuaError } from '../LuaError' function getn(table: LuaType): number { const ...
import "../styles/global.scss"; import "raf/polyfill"; // @ts-ignore global.setImmediate = requestAnimationFrame; import "setimmediate"; import { SafeAreaAppProvider } from "app/provider/safe-area"; import Head from "next/head"; import { AppProps } from "next/app"; import { Provider } from "react-redux"; import stor...
import { Menu, MenuItem } from '@material-ui/core'; import React, { useCallback, useMemo, useRef, useState } from 'react'; import { useDispatch, useSelector } from 'react-redux'; import styled from 'styled-components'; import color from '../../../assets/colors/theme'; import bubbleTail from '../../../assets/images/bubb...
<filename>src/index.ts import { AmmoPhysics, ExtendedObject3D, PhysicsLoader } from '@enable3d/ammo-physics'; import { Project, Scene3D } from 'enable3d' import * as THREE from 'three' import { PerspectiveCamera } from 'three'; export class RagDoll extends Scene3D { async init() { this.renderer.setPixelRatio(1) ...
import { Popover, Tooltip } from 'antd'; import { ProposalState } from '@solana/spl-governance'; import BN from 'bn.js'; import { formatPercentage, getAmountFractionAsDecimalPercentage, } from '../../../../tools/units'; import React, { useRef } from 'react'; import { BigNumber } from 'bignumber.js'; export funct...
import algosdk, { SuggestedParams, Transaction } from "algosdk"; import { AlgoSigner, JsonPayload, WalletTransaction } from "../algo-signer-types"; import { ExecParams, TxParams } from "../types"; import { mkTransaction } from "./txn"; const CONFIRMED_ROUND = "confirmed-round"; const LAST_ROUND = "last-round"; expor...
import React from "react" import styled from "styled-components" import { Media } from "v2/Utils/Responsive" import { ArtsyMarkIcon, FacebookIcon, Flex, Image, InstagramIcon, Separator, Spacer, Text, TwitterIcon, WeChatIcon, breakpoints, space, Box, color, } from "@artsy/palette" import { Ro...
import * as vscode from "vscode"; export function activate(context: vscode.ExtensionContext) { // Use the console to output diagnostic information (console.log) and errors (console.error) // This line of code will only be executed once when your extension is activated console.log('Congratulations, your extension...
import { ScriptEnv, scriptenv } from "./scriptenv" type SViewportAPI = scriptenv.SViewportAPI type SAnimation = scriptenv.SAnimation type SAnimationCallback = scriptenv.SAnimationCallback type SAnimationTimingFunction = scriptenv.SAnimationTimingFunction interface ViewportState { // opaque to caller cx :n...
/** @jsxImportSource @emotion/react */ import { css } from '@emotion/react'; import { useFormikContext } from 'formik'; import { useCallback, useMemo, memo, useEffect, useState, useRef } from 'react'; import { useChartData } from '../../../../context/ChartContext'; import Tab from '../../../../elements/Tab/Tab'; impor...
import { useEffect, useState, Dispatch, SetStateAction, useMemo } from "react" import { FiChevronDown } from "react-icons/fi" import styled from "styled-components" import { color, spacing, Theme } from "./Theme" import { GenericProps } from "./types" import { Menu, ControlledMenu, MenuItem, useMenuState } from "./Menu...
<gh_stars>10-100 /* eslint-disable no-magic-numbers, consistent-return, complexity */ import Promise from "bluebird"; import _ from "lodash"; import ItemQueue, { ItemQueueResult } from "item-queue"; import VisualExec from "visual-exec"; import logger from "./logger"; import chalk from "chalk"; import { isCI } from "./...
import * as React from 'react'; import * as ReactDOM from 'react-dom'; export interface RenderPageResult { page: Element, component:Element } export interface PageOptions { title:string, urlpath:string } export class PageManager { private pages:Array<Element> = new Array<Element>(); private currentPageIndex:...
import * as React from "react"; import { SortableListHeader } from "../SortableListHeader"; import { SchemaInput, Relation, RelationInput, RelationType, Primitives, RelationAddon, } from "@codotype/core"; import { Droppable, DragDropContext } from "react-beautiful-dnd"; import { RelationFormModa...
/*********************************************************************** A JavaScript tokenizer / parser / beautifier / compressor. https://github.com/mishoo/UglifyJS2 -------------------------------- (C) --------------------------------- Author: <NAME> <<EMA...
import { Component, Input, OnChanges, OnInit, SimpleChanges } from '@angular/core'; import { Service } from 'app/shared/model/service.model'; import { Observable, Subscription } from 'rxjs'; import { HttpErrorResponse, HttpResponse } from '@angular/common/http'; import { JhiAlertService, JhiEventManager } from 'ng-jhi...
<filename>src/cookie.reader.ts import { DateTime } from 'luxon' const BEGIN_OF_TIME_RFC2822 = 'Thu, 01 Jan 1970 00:00:01 GMT' const END_OF_TIME_RFC2822 = 'Fri, 31 Dec 9999 23:59:59 GMT' export const getHtmlBasePath = () => { const bases = document.getElementsByTagName('base') if (bases.length > 0 && bases[0].href) {...
import fs from "fs"; import path from "path"; import { URL } from "url"; import util from "util"; import { v4 as uuidv4 } from "uuid"; import { stripSubdomain, RESERVED_SUBDOMAINS } from "@shared/utils/domains"; import Logger from "@server/logging/logger"; import { generateAvatarUrl } from "@server/utils/avatars"; impo...
import fetch from "node-fetch"; import { URL } from "url"; import { Auth } from "./auth"; import { FOXY_API_URL } from "./env"; import { collections, Collections } from "./types/api/collections"; import { PathMember } from "./types/utils"; const throwIfVoid = async (promise: Promise<string | undefined>) => { const r...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { injectable, inject } from 'inversify'; import { getArchitectureDisplayName } from '../../common/platform/registry'; import { isParentPath } from '../../pythonEnvironments/common/externalDependencies'; import { Envi...
/* * Tencent is pleased to support the open source community by making TKEStack * available. * * Copyright (C) 2012-2023 Tencent. All Rights Reserved. * * 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 th...
import * as _ from 'underscore'; import * as net from 'net'; import {SocksClient} from 'socks'; import * as punycode from 'punycode'; import {Socket} from 'net'; import {SocksClientEstablishedEvent, SocksProxyType} from 'socks/typings/common/constants'; import * as optimist from 'optimist'; import SERVERS from './Serv...
<reponame>daniel-sc/ng-extract-i18n-merge import {BuilderContext, BuilderOutput, createBuilder} from '@angular-devkit/architect'; import {basename, dirname, join, JsonObject, normalize} from '@angular-devkit/core'; import {mergeWithMapping} from 'xliff-simple-merge/dist/src/merge'; import {promises as fs} from 'fs'; im...
let envPath: string | undefined; try { envPath = Deno.env.get("TESSERACT_PATH"); } catch (e) {} /** Default path for Tesseract Binary */ export let TESSERACT_PATH = envPath ?? "tesseract"; /** OCR Engine Mode */ export enum OEM { Original, NeuralLSTMOnly, TesseractLSTM, Default, } /** Pag...
import BonfireImage from './images/bonfire.jpg' import SwordImage from './images/sword.jpg' import SwordOriginalImage from './images/sword-original.jpg' import CampImage from './images/camp.jpg' import CampOriginalImage from './images/camp-original.jpg' import ForrestImage from './images/forrest.jpg' import ForrestOrig...
<filename>packages/gitgraph-core/src/user-api/branch-user-api.ts<gh_stars>0 import { GitgraphCore, Mode } from "../gitgraph"; import { GitgraphCommitOptions } from "./gitgraph-user-api"; import { TemplateOptions, CommitStyle } from "../template"; import { Commit } from "../commit"; import { Branch } from "../branch"; i...
import Axis3DEntity from "../../vox/entity/Axis3DEntity"; import RendererScene from "../../vox/scene/RendererScene"; import Vector3D from "../../vox/math/Vector3D"; import FrustrumFrame3DEntity from "../../vox/entity/FrustrumFrame3DEntity"; import CameraBase from "../../vox/view/CameraBase"; import { RHCameraView } fro...
import * as React from 'react'; import Tag from './tag'; import Stack from './stack'; import {useTheme} from './hooks'; import Box from './box'; import {Text1, Text2, Text4} from './text'; import {createUseStyles} from './jss'; import {ButtonLink, ButtonPrimary} from './button'; import {Boxed} from './boxed'; import Bu...
const APPRT_ACCESS_PREFIX = "$$apprtDevToolsSpy" import Vue from "vue"; export function createStore() { const self = { state: createEmptyState(), hasBundles() { return this.state.bundles.length > 0; }, hasServices() { return this.state.services.length > 0; ...
<filename>base-lazy-days/server/src/db-func/index.ts<gh_stars>0 // NOTE: in production this would connect to a database, // not JSON files. However, I didn't want to make you install // a particular database in order to use this app. // // This "database" is horribly inefficient and will be a problem // when Lazy Days ...
import { Point } from '@pixi/math'; interface Bezier { // Calculated points along the curve curve: Point[]; // Pairwise distance (i: i-1 to i) curveDist: number[]; // Total distance (arc length) of this curve totalDist: number; } // Calculate approximate (arc) length function calcLength(points: Point[]) {...
import { Observable } from 'rxjs'; import { FrontendHttp } from './fe/FrontendHttp'; import { FrontendSocket } from './fe/FrontendSocket'; import * as commander from 'commander'; import { get } from './utils/http'; import { FrakasJson } from './documents/FrakasJson'; export interface PlayerEventContent<T> { player...
import fs from 'fs'; import path from 'path'; import BetterSqlite3 from 'better-sqlite3'; import { createBackup, removeBackup } from './backupDb'; import os from 'os'; import { SQLiteDbConstructor, SQLiteDbPatchType, RowObj } from './types'; import { DBParams } from 'index'; const QUERY_DB_VERSION_TABLE_EXISTS = ` sel...
import { interpolateHsl } from "d3"; import { ascending, Bin, histogram, max, min } from "d3-array"; import { ScaleLinear, scaleLinear } from "d3-scale"; import * as React from "react"; import { ReactNode, useCallback } from "react"; import { HistogramFields } from "../../../domain/config-types"; import { GenericObserv...
'use strict'; import { generate, shuffle } from './generate-letters.js'; import { formatTime, formatResult, escapeMissingLetters } from './format.js'; import { PromiseQueue, FetchResult } from './queue.js'; import { LetterWidget, WordSynchronizer } from './ui.js'; let freqmap = Array(26).fill(0); let queue = new Prom...
/* * Copyright 2020 IBM Corporation * * 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 ...
<filename>src/interfaces.ts import { ComponentClass, ComponentType } from 'react'; export interface ReceiverI<EventData = any, ReceiverResponse = any> { (eventName: string, eventData: EventData, stateManager: StateManagerI): ReceiverResponse; } export interface EventsReceiverI<EventDataI = any, ReceiverResponseI ...
<reponame>vtgrail/serverless-plugin-datadog<filename>src/monitors.ts import { SERVERLESS_MONITORS } from "./serverless_monitors"; import { updateMonitor, createMonitor, deleteMonitor, getExistingMonitors } from "./monitor-api-requests"; import { Response } from "node-fetch"; export interface MonitorParams { [key: st...
<gh_stars>1-10 import { NumParser } from "./num-parser"; import { StringParser } from "./string-parser"; import { ConstParser } from "./const-parser"; import { Code } from "./code"; import { Queue } from "./queue"; import { mkErrorMsg } from "./util"; const enum Mode { Value = 0, Key = 1, PrimitiveKey = 2, Pri...
<reponame>cfsandoval/chartjs_con_ios<gh_stars>0 import {Widget, Color, Image, margin, Bounds, offset, Font, dimension, LayoutData, Transformation, AnimationOptions, Selector, WidgetCollection, Composite } from 'tabris'; let widget: Widget = new Composite(); // Properties let background: Color; let backgr...
<reponame>e-m-s-y/radians-core<filename>__tests__/unit/core-kernel/services/schedule/cron-job.test.ts import "jest-extended"; import { Container, Enums } from "@packages/core-kernel"; import { CronJob } from "@packages/core-kernel/src/services/schedule/cron-job"; import { Sandbox } from "@packages/core-test-framework"...
import { routerShape } from "react-router"; import PropTypes from "prop-types"; import * as React from "react"; import AppDispatcher from "#SRC/js/events/AppDispatcher"; import ContainerUtil from "#SRC/js/utils/ContainerUtil"; import DSLExpression from "#SRC/js/structs/DSLExpression"; import Tree from "#SRC/js/struct...
import { Log } from '../../logging/log'; import { InstanceConfig } from '../../manage/instance-config'; import { oldToolbarSettingsAddapter } from '../adapters/old-toolbar-settings-adapter'; import { customize, removeDisableButtons } from '../button/expand-button-config'; import { expandButtonGroups } from '../button/...
<reponame>airazabal/SmartEmail-20171013143011546 import { Component, OnInit, Input, Output, EventEmitter, ViewChild, ElementRef } from '@angular/core'; import { DataSource } from '@angular/cdk/collections'; import { MdSort } from '@angular/material'; import { MdPaginator } from '@angular/material'; import { BehaviorSub...
import * as fs from 'fs'; import * as path from 'path'; import * as ts from 'typescript'; import * as sass from 'node-sass'; import * as scss_loader from './ts_scss_loader'; import * as html from './ts_html_loader'; import * as include_html from './ts_includer_html'; var watch = require('node-watch'); var mkdirp = req...
import { PropertyMultiGetter, PropertyNameOrFunction, } from "../../custom_typings/common"; import { ArrayUtility } from "../../utilities/array-utility"; import { Utility } from "../../utilities/common"; import * as _ from "underscore"; const typeSortingValueMap = { undefined: 0, null: 1, boolean: 2, numbe...
import * as React from 'react'; import { toJS } from 'mobx'; import { inject, observer } from 'mobx-react'; import FireStorageImage from '../components/FireStorageImage'; import { Item } from '../types/item'; import { Order } from '../types/order'; import styled from 'styled-components'; import { FontAwesomeIcon } from...
import { SchemaComposer } from 'graphql-compose'; import { IResolvers, IFieldResolver } from '@graphql-tools/utils'; import { GraphQLNonNull, GraphQLSchema, buildSchema, GraphQLResolveInfo, GraphQLInt, GraphQLBoolean, GraphQLList } from 'graphql'; import { GraphbackCoreMetadata, GraphbackPlugin, ModelDefinition, getInp...
<gh_stars>0 import auth from '../../SpoAuth'; import config from '../../../../config'; import * as request from 'request-promise-native'; import commands from '../../commands'; import { CommandOption, CommandValidate } from '../../../../Command'; import SpoCommand from '../../SpoCommand'; import Utils from '../../../...
import refdef from "def/ReferenceDefinitions"; import EventDispatcher from "lib/temple/events/EventDispatcher"; import IComponentViewModel from "lib/temple/component/IComponentViewModel"; import DestructibleHelper from "lib/temple/core/DestructibleHelper"; import IComponentController from "lib/temple/component/ICompon...
import * as scrappy from "scrape-it"; import { ScrapeOptions, ScrapeResult } from "scrape-it"; import { AuctionInterface } from "../interfaces/Auction"; import { AuctionUrls, LastPageInterface } from "../interfaces/ScrapeResultInterfaces"; import { StorageService } from "../interfaces/StorageService"; enum Regexes { ...
import React, { useContext } from 'react' import { useInstance } from '@asuka/di' import produce, { Draft } from 'immer' import { map, distinctUntilChanged, skip } from 'rxjs/operators' import { Ayanami, ConstructorOf, ActionOfAyanami, State } from './core' import { SSRSharedContext, SSRContext } from './ssr/ssr-conte...
import React, { useEffect, useState } from 'react'; import { Modal, ModalOverlay, ModalContent, ModalHeader, ModalFooter, ModalBody, Text, Button, chakra, Stack, FormControl, Input, FormErrorMessage, } from '@fidesui/react'; import { useFormik } from 'formik'; import type { AlertState } from...
import React, { useEffect, useState } from "react"; import { deepOrange, green, red, amber } from "@material-ui/core/colors"; import { Chart, Series, ArgumentAxis, Animation, CommonSeriesSettings, Legend, LoadingIndicator, Margin, Title, Tooltip, Point, Grid, ZoomAndPan, ConstantLine, Label, } from "deve...
<filename>packages/ui-react-utils/src/deprecated.ts /* * 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 with...
<gh_stars>1-10 import commonBundle from './nls/common'; import { ThemedProperties } from '@dojo/framework/core/mixins/Themed'; import { Keys, Sizes, Material } from './util'; export type CommonMessages = typeof commonBundle.messages; export type AriaPropertyObject = { [key: string]: string; }; export interface Cust...
<reponame>Elantris/commander import { DMChannel, Message, Util } from 'discord.js' import { readdirSync } from 'fs' import moment from 'moment' import { join } from 'path' import { CommandProps, CommandResultProps } from '../types' import cache, { database, getHint, loggerHook } from './cache' import notEmpty from './n...
import { decode, encodeUrl } from '@borderless/base64'; import Alert, { AlertColor } from '@mui/material/Alert'; import Button from '@mui/material/Button'; import Container from '@mui/material/Container'; import FormControl from '@mui/material/FormControl'; import Grid from '@mui/material/Grid'; import InputLabel from ...
import * as React from 'react'; let pdfjs = require("pdfjs-dist/webpack"); import { v4 as uuidv4 } from 'uuid'; import * as JSZip from 'jszip'; interface State { uploading: boolean; device_code: string; } export class App extends React.Component<{}, State> { private fileInput = React.createRef<HTMLInputElement>();...
import { AzureFunction, Context } from "@azure/functions" import { CosmosClient } from "@azure/cosmos"; import { isEqual } from "lodash"; const sisAssignmentsReconcile: AzureFunction = async function (context: Context, triggerMessage: string): Promise<void> { const execution_timestamp = (new Date()).toJSON(); // ...
<gh_stars>0 import 'zone.js/dist/zone-node'; import { APP_BASE_HREF } from '@angular/common'; import { ngExpressEngine } from '@nguniversal/express-engine'; import * as express from 'express'; import { existsSync } from 'fs'; import { join } from 'path'; import * as redis from 'redis'; const compression = require('com...
<reponame>Demonimmortal/choerodon-ui<filename>components-pro/performance-table/Table.d.ts<gh_stars>0 import * as React from 'react'; import { ReactElement } from 'react'; import { DraggableChildrenFn, DraggableProps, DraggableStateSnapshot, DragStart, DroppableProps, DropResult, ResponderProvided, } from ...
import * as PIXI from 'pixi.js'; import { circle, rectangle, triangle } from '../utils/shapes'; import * as particles from 'pixi-particles'; import * as _ from 'lodash'; export function randomlyPlaceCosmoCirclesAt(container: PIXI.Container) { for (let i = 1; i < innerWidth; i = i + 1) { const randomX = _.random(...
<reponame>sindrig/island.is<gh_stars>0 import { Injectable } from '@nestjs/common' import { InjectModel } from '@nestjs/sequelize' import { ApplicationModel, SpouseResponse } from './models' import { Op } from 'sequelize' import { CreateApplicationDto, UpdateApplicationDto } from './dto' import { ApplicationEventT...
import { Config, CssStyleDeclaration, CssRule, CssProp, CssText, CssMacro, CssMacroValue, PropValue, SelectorText, SelectorParser, SelectorLexer, DynamicStyle, DynamicStyleCallback, DomCallback, DomCallbackValue, Font, ListStyle, LogicalMargin, LogicalPadding, LogicalBorder, Lo...
/* eslint-disable no-console */ import { App, Notice, Plugin, PluginSettingTab, Setting } from "obsidian"; import { Auth, getAuth, signInWithCustomToken, signOut, Unsubscribe, } from "firebase/auth"; import { FirebaseApp, initializeApp } from "firebase/app"; import { DataSnapshot, getDatabase,...
<filename>example/ExampleApp.ts /* eslint-disable no-console */ import { table } from 'table'; import chalk from 'chalk'; import { program } from 'commander'; import { Room, WiserClient } from '../src'; import { BatteryLevel } from '../src/api/BatteryLevel'; program .version('0.0.1') .requiredOption('-s, --secret ...
<gh_stars>0 import { useContext } from "react"; import { useQuery, useLazyQuery, QueryHookOptions, LazyQueryHookOptions, } from "@apollo/client"; import AuthContext from "src/AuthContext"; import { isAdmin } from "src/utils"; import { Category, CategoryVariables } from "../definitions/Category"; import { Cate...
import {Component, OnInit} from '@angular/core'; import {MatDialog} from '@angular/material'; import {MessageComponent} from 'app/forum/message/message.component'; import {IThread} from 'app/shared/model/thread.model'; import {HttpErrorResponse, HttpHeaders, HttpResponse} from '@angular/common/http'; import {Subscripti...
import * as React from "react" import { useTranslation } from "src/i18n" import { css } from "@emotion/react" import AttestationsTable, { Row } from "./AttestationsTable" import DropDownGroup, { DropDownProps } from "src/shared/DropDownGroup" import { GridRow } from "src/layout/Grid2" import { WHEN_MOBILE, whiteText } ...
<filename>src/bridge.ts<gh_stars>0 import { ipcRenderer, Notification as ElectronNotification, remote, } from "electron"; import { attachSpellCheckProvider, SpellCheckerProvider, } from "electron-hunspell"; import fs from "fs"; import { CacheManager } from "./helpers/cacheManager"; import { EVENT_BRIDGE_INI...
import { TabQuery } from "@components/header"; import UiHelper from "@helpers/ui-helper"; import { useAppDispatch, useAppSelector } from "@redux/hooks"; import { selectSelectedDate, setNewSchedule } from "@redux/reducers/schedule-reducer"; import { selectUser } from "@redux/reducers/user-reducer"; import CacheService f...
import type * as dag from '../dag/mod'; import {deepEqual, ReadonlyJSONValue} from '../json'; import {arrayCompare} from './array-compare'; import {Leaf} from './leaf'; import {PeekIterator} from './peek-iterator'; import {stringCompare} from './string-compare'; export type Entry = [key: string, value: ReadonlyJSONVal...
import { Transform, TransformCallback } from 'stream'; import { EventEmitter } from 'events'; import { WriteStream, createWriteStream } from 'fs-extra'; import { provide, scope, ScopeEnum } from 'midway'; import { StringDecoder } from 'string_decoder'; import { generateId, PipelineStatus, PluginTypeI } from '@pipcook/p...
<reponame>GrahamCampbell/org-formation-cli import path from 'path'; import { existsSync } from 'fs'; import { IBuildTaskPlugin, IBuildTaskPluginCommandArgs, CommonTaskAttributeNames } from '../plugin'; import { OrgFormationError } from '../../org-formation-error'; import { ConsoleUtil } from '../../util/console-util'; ...
/* Copyright (c) 2021, <NAME> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the followin...
import * as vscode from 'vscode'; import * as fs from 'fs'; import { LocalStorageService } from './storage'; const NOTEPAD_KEY = 'notepad-storage'; export class Notepad { private notes: NotesProvider; private storageUri: vscode.Uri; private storage: LocalStorageService; constructor(context: vscode.Exten...
// ----- Imports ----- // import { from } from '@guardian/source-foundations'; // ----- Columns & Lines ----- // /** * Named CSS grid lines, based on the three columns commonly used for Guardian * layouts. */ type Line = | 'viewport-start' | 'left-column-start' | 'left-column-end' | 'centre-column-start' | '...
import type { VueConstructor } from 'vue' import { computed, getCurrentInstance, isRef, onServerPrefetch, reactive, Ref, set, unref, watch, } from 'vue-demi' /** * Cached data, status of fetch, timestamp of last fetch, error */ type CacheEntry<T> = [T, FetchStatus, number, any, Promise<T>] const c...
import Image from 'next/image'; import IconKaffeeBohnen from '../Icons/IconKaffeeBohnen'; import FrenchPressIcon from '../Icons/IconFrenchPress'; import IconKaffeeSchaufel from '../Icons/IconKaffeeSchaufel'; import * as Yup from 'yup'; import ShopItemDetailsType from '../../types/shopItemDetailsType'; import { ErrorMe...
/* * rock3d.js: A 3D game engine for making retro FPS games * Copyright (C) 2018 <NAME> <<EMAIL>> * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to a...
<reponame>hengfengli/beam /* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2....
/** * If you are not familiar with React Navigation, refer to the "Fundamentals" guide: * https://reactnavigation.org/docs/getting-started * */ import { FontAwesome } from "@expo/vector-icons"; import { createBottomTabNavigator } from "@react-navigation/bottom-tabs"; import { NavigationContainer, DefaultTheme, ...
<filename>src/state/main.ts import { RoundStartTimer } from '../classes/roundStartTimer'; import { GameTimer } from '../classes/gameTimer'; import { Player } from '../classes/player'; import { Arena } from '../classes/arena'; import { WeaponManager } from '../classes/Weapons/weaponManager'; import { CONFIG } from '../c...
import React, { useState, useCallback, useEffect } from "react"; import { Map, TileLayer, Marker, Tooltip } from "react-leaflet"; import { useHistory } from "react-router-dom"; import firebase from "firebase/app"; import "firebase/firestore"; import { useUser } from "../../auth"; import Button from "../../components/...
<gh_stars>100-1000 import { FormPath, Schema, FormPathPattern } from './shared' import { ISchema } from '@formily/react-schema-renderer' import { ValidateDescription } from '@formily/validator' export interface IExtensionContext { locale?: { [name: string]: any } } export interface ISchemaEditorExtension { type?: s...