text
stringlengths
10
953k
import { Component } from '@angular/core'; @Component({ // The selector is what angular internally uses // for `document.querySelectorAll(selector)` in our index.html // where, in this case, selector is the string 'home' selector: 'home', // <home></home> // We need to tell Angular's Dependency Injection w...
import _ from 'lodash'; import PropTypes from 'prop-types'; import memoize from 'memoize-one'; import XDate from 'xdate'; import React, {Component, Fragment, ReactNode} from 'react'; import {ActivityIndicator, Platform, View, Text, TouchableOpacity as IosTouchableOpacity, Image, StyleProp, ViewStyle, AccessibilityActi...
/** * @author mrdoob / http://mrdoob.com/ * @author kile / http://kile.stravaganza.org/ * @author philogb / http://blog.thejit.org/ * @author mikael emtinger / http://gomo.se/ * @author egraether / http://egraether.com/ * @author WestLangley / http://github.com/WestLangley * @author corruptedzulu / http://github...
import { Title } from '@angular/platform-browser'; import { Injectable } from '@angular/core'; import { AuthStore } from '@angular-spotify/web/auth/data-access'; import { switchMap, take, tap, withLatestFrom } from 'rxjs/operators'; import { PlaybackStore } from './playback.store'; import { PlayerApiService } from '@an...
import * as THREE from "three"; import { IStage } from "./istage"; import { IScene } from "../scene/iscene"; import { UniverseScene } from "../scene/universe"; export class MainStage implements IStage { private scene: IScene | null; constructor() { this.scene = null; } enter(): void { ...
import i18n from '../../plugins/vueI18n' import { IRegisteredService } from './IRegisteredService' import Configuration from '../../../test-data/configuration.json' /** * Represents a repository for all the application services. */ class ServicesRepository { /** * Collection of the configured services. */ ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fr_CA" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About mastcoin</source> <translation>Au sujet de mastcoin</translation> </message> <message> ...
import { GESTURE_CONTROLLER } from './gesture-controller'; import { createPointerEvents } from './pointer-events'; import { createPanRecognizer } from './recognizers'; export const createGesture = (config: GestureConfig): Gesture => { let hasCapturedPan = false; let hasStartedPan = false; let hasFiredStart = tru...
import Calendar from './calendar/nb_NO'; import DatePicker from './date-picker/nb_NO'; import Pagination from './pagination/nb_NO'; import TimePicker from './time-picker/nb_NO'; export default { locale: 'nb', DatePicker, TimePicker, Calendar, Pagination, Table: { filterTitle: 'Filtermeny', filterCo...
export function getFirstRecurringCharacter(str: string) { let map: {[key: string]: number} = {}; for(const char of str) { if(map[char] === undefined) { map[char] = 1; } else { return char; } } return null; }
import * as semver from 'semver'; import {CallCredentials} from './call-credentials'; import {Channel} from './channel'; import {ChannelCredentials} from './channel-credentials'; import {Client} from './client'; import {LogVerbosity, Status} from './constants'; import * as logging from './logging'; import {loadPackage...
export default function (key: string) { if (key.trim() !== key) return true; if (/[.,;/]/.test(key)) return true; try { new Function(`({${key}:0}).${key}`); } catch (_) { return true; } return false; }
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { OperatorDoc } from '../operator.model'; export const delay: OperatorDoc = { name: 'delay', operatorType: 'utility', signature: 'public delay(delay: number | Date, scheduler: Scheduler): Observable', parameters: [ { name: 'delay', type: 'number | Date', attribute: '', de...
import {makeAuthMediator} from "../auth-mediator.js" export type AuthMediator = ReturnType<typeof makeAuthMediator>
import { workspace, window } from 'vscode'; import * as fse from 'fs-extra'; import * as fs from 'fs'; import * as path from 'path'; import { pascalCase } from 'change-case'; import { Observable } from 'rxjs'; import FileInterface from './interfaces/files.interface'; import GlobalInterface from './interfaces/global.int...
/* * Copyright 2020 Spotify AB * * 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...
import { Column, Entity, JoinColumn, ManyToOne, OneToMany, PrimaryGeneratedColumn } from "typeorm"; import { GroupEntity } from "../group/group.entity"; import { TagEntity } from "../tag/tag.entity"; import { MemberEntity } from "../member/member.entity"; import { LotEntity } from "../lot/lot.entity"; import { UserEnti...
import { Gift } from "../../entities"; export interface DeleteGift { execute(giftId?: string): Promise<Gift | undefined> }
export function Between(x: number, min: number, max: number): boolean { return x >= min && x <= max; } export function Lerp(start: number, end: number, amt: number): number { return (1-amt) * start + amt * end; }
export { ChartMinimum16 as default } from "../../";
import { Component, Element, State, Prop, h } from '@stencil/core'; @Component({ tag: 'ab-native-slider', styleUrl: 'native-slider.scss', shadow: true }) export class NativeSlider { @Prop() name: string = 'ab-native-slider'; @Prop() min: number = 0; @Prop() max: number = 10; @Prop() value: number = 0; ...
export const production = true; export const hmr = false; export const persistenceSettings = { // TODO(issue#846): change to synchronizeTabs when available (angularFire 5.2) experimentalTabSynchronization: true }; // Firebase // ======== export const appUrl = 'https://demo3.blockframes.io'; export const firebas...
import { SolflareWalletAdapter, SolflareWalletAdapterConfig } from '@solana/wallet-adapter-solflare'; import { Wallet, WalletName } from './types'; export const getSolflareWallet = (config: SolflareWalletAdapterConfig = {}): Wallet => ({ name: WalletName.Solflare, url: 'https://solflare.com', adapter: () =...
import { Bot, merge, parseSimulationId, createBot, DEVICE_BOT_ID, LOCAL_BOT_ID, botUpdated, TEMPORARY_BOT_PARTITION_ID, COOKIE_BOT_PARTITION_ID, COOKIE_BOT_ID, BotTags, isBotTags, isBot, AuxPartitionConfig, ADMIN_PARTITION_ID, ADMIN_BRANCH_NAME, TEMPOR...
import { MdiReactIconComponentType } from './dist/typings'; declare const LayersOffIcon: MdiReactIconComponentType; export default LayersOffIcon;
import { SECRET_KEY } from "../config/constant"; import jwt from 'jsonwebtoken'; // Dependencia de JWebToken (JWT) class JWT { private secretKey = SECRET_KEY as string; // Firma del token sign( data: any ): string { return jwt.sign( {user: data.user}, // datos del usuario ...
export * from './url-validator';
import React, { FunctionComponent, useState } from "react"; import { HeaderLayout } from "../../../layouts"; import { observer } from "mobx-react-lite"; import { useStore } from "../../../stores"; import { useHistory } from "react-router"; import { Button, Popover, PopoverBody } from "reactstrap"; import style from...
/** * Copyright 2014-present Palantir Technologies * @license MIT */ export * from "./arcDrawer"; export * from "./arcOutlineDrawer"; export * from "./areaDrawer"; export * from "./canvasDrawer"; export * from "./drawer"; export * from "./drawStep"; export * from "./lineDrawer"; export * from "./rectangleDrawer"; e...
import { Loader } from '@fluentui/react-northstar'; import * as React from 'react'; const LoaderMinimalPerf = () => <Loader />; LoaderMinimalPerf.iterations = 1000; LoaderMinimalPerf.filename = 'LoaderMinimal.perf.tsx'; export default LoaderMinimalPerf;
import React, { ChangeEvent, useEffect, useState } from "react"; import axios from "axios"; import { Button, Empty, Icon, Input, Progress } from "rui-next"; // Item type export type ItemType = { text: string; done: boolean; }; // TodoList FC const TodoList: React.FC = () => { // the input task item const [tas...
// smithy-typescript generated code import { getSerdePlugin } from "@aws-sdk/middleware-serde"; import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http"; import { Command as $Command } from "@aws-sdk/smithy-client"; import { FinalizeHandlerArguments, Handler, HandlerEx...
import React from 'react'; import { Radio, RadioGroup, RadioProps } from '@mantine/core'; const getSizes = (props?: RadioProps) => (['xs', 'sm', 'md', 'lg', 'xl'] as const).map((size, index) => ( <RadioGroup size={size} key={size}> <Radio value={size} style={{ marginTop: index === 0 ? 0 : 15 }} {...props}>...
import {combineReducers} from "redux"; import {playerReducer} from "./playerReducer"; import {HYDRATE} from "next-redux-wrapper"; import {trackReducer} from "./trackReducer"; const rootReducer = combineReducers({ player: playerReducer, track: trackReducer }) export const reducer = (state, action) => { if ...
/** this file is generated from `yarn dev-utils sassdoc` and should not be updated manually */ import { PackageSassDoc } from "utils/sassdoc"; const sassdoc: PackageSassDoc = { functions: { "rmd-tooltip-theme": { name: "rmd-tooltip-theme", description: "This function is used to quickly get on...
/** * @license Use of this source code is governed by an MIT-style license that * can be found in the LICENSE file at https://github.com/cartant/rxjs-pluggables */ import { Subscription } from "rxjs"; export const closedSubscription = (function () { const subscription = new Subscription(); subscription.unsubsc...
import { AgoraConfig } from './AgoraConfig'; import { AgoraClient } from './AgoraClient'; export declare class AngularAgoraRtcService { private config; audioDevices: any[]; videoDevices: any[]; client: AgoraClient; constructor(config: AgoraConfig); checkSystemRequirements(): any; private get...
import React from 'react'; import { Routes, Route } from 'react-router-dom'; import { HomePage, NotFoundPage } from './pages'; export const App = () => { return ( <Routes> <Route path="/" element={<HomePage />} /> <Route path="*" element={<NotFoundPage />} /> </Routes> ); };
// Shims originally adapted from https://github.com/nteract/nteract/blob/47f8b038ff129543e42c39395129efc433eb4e90/scripts/test-shim.js const fetchMod = ((window as any).fetch = require('node-fetch')); // tslint:disable-line (window as any).Request = fetchMod.Request; (window as any).Headers = fetchMod.Headers; (globa...
/* * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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...
import { Application } from "egg"; const debug = require("debug")("egg-passport-citi"); const assert = require("assert"); const Strategy = require("passport-citi").Strategy; const uuid = require("uuid/v4"); export default (app: Application) => { const config = app.config.passportCiti; config.passReqToCallback = t...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-tan-confirmation-error', templateUrl: './pis-tan-confirmation-error.component.html' }) export class PisTanConfirmationErrorComponent implements OnInit { constructor() { } ngOnInit() { } }
import { lazyLoad } from 'utils/loadable'; export const SectionTitle = lazyLoad( () => import('./index'), module => module.SectionTitle, );
import { customElement } from "../runtime/templating/custom-element"; import view from 'view!./name-tag.html'; @customElement(view) export class NameTag { name = 'Aurelia'; color = 'red'; borderColor = 'orange'; borderWidth = 3; showHeader = true; nameChanged(newValue: string) { console.log(`Name chan...
import { Module } from '@nestjs/common'; import { ConfigModule, ConfigService } from '@nestjs/config'; import * as Joi from '@hapi/joi'; import DatabaseModule from './database/database.module'; import UserModule from './users/user.module'; import AuthenticationModule from './authentication/authentication.module' import...
export * from './auth' export * from './common' export * from './enquiries' export * from './env' export * from './file' export * from './search'
import React from 'react'; import InfiniteScroll from 'react-infinite-scroll-component'; import {Grid} from '@material-ui/core'; import {CommentHistory} from '../CommentHistory/CommentHistory'; import {sortOptions} from '../FriendsMenu/default'; import {DropdownMenu} from '../atoms/DropdownMenu'; import {useStyles} f...
import { injectable, inject } from 'inversify'; import { ServiceIdentifiers } from '../../../container/ServiceIdentifiers'; import { IOptions } from '../../../interfaces/options/IOptions'; import { IObfuscationReplacer } from '../../../interfaces/node-transformers/IObfuscationReplacer'; @injectable() export abstract ...
<TS language="eo" version="2.0"> <context> <name>AddressBookPage</name> <message> <source>Double-click to edit address or label</source> <translation>Duoble-klaku por redakti adreson aŭ etikedon</translation> </message> <message> <source>Create a new address</source> <tra...
import 'babel-polyfill' import 'normalize.css' import debug from 'debug' import { ContentState, convertFromHTML, convertFromRaw, convertToRaw, EditorState, SelectionState } from 'draft-js' import Editor from 'draft-js-plugins-editor' import * as React from 'react' import styled from 'styled-components' declare var p...
export { MonoModule } from './mono.module';
export type QueryMeta = { text: string optional: boolean name: string }
export const tabs_list_height = 1.5 * 16;
import * as cloudmap from '@aws-cdk/aws-servicediscovery'; import * as cdk from '@aws-cdk/core'; import { CfnVirtualNode } from './appmesh.generated'; import { IMesh } from './mesh'; import { HealthCheck, PortMapping, Protocol, VirtualNodeListener } from './shared-interfaces'; import { IVirtualService } from './virtua...
import Discord from "discord.js"; import { SlashCommandBuilder } from "@discordjs/builders"; import { MissingPermissionsError } from "../base/Error"; interface ArgumentOptions { name: string; description: string; required?: boolean; type: Discord.ApplicationCommandOptionType; } interface CommandOptio...
import { Precondition } from '@sapphire/framework'; export class UserPrecondition extends Precondition { public async run() { return this.ok(); } }
const CLASS_PREFIX = 'md-flex'; const ALIGN_CONTENT = { start: 'flex-start', end: 'flex-end', center: 'center', spaceBetween: 'space-between', spaceAround: 'space-around', spaceEvenly: 'space-evenly', stretch: 'stretch', baseline: 'baseline', }; const JUSTIFY_CONTENT = { ...ALIGN_CONTENT, left: 'l...
/** * Import Angular libraries. */ import { Component, OnInit, ChangeDetectorRef } from '@angular/core'; import { TestBed, ComponentFixture, ComponentFixtureAutoDetect, waitForAsync } from '@angular/core/testing'; /** * Import custom components. */ import { SvgContainerComponent } from '../components/svg-container...
import './impact.feature.gui.gui'; export {}; declare global { namespace sc { interface NumberGui extends ig.GuiElementBase { setNumber(this: this, number: number, skipTransition?: boolean | null): void; } interface NumberGuiConstructor extends ImpactClass<NumberGui> {} var NumberGui: NumberGu...
export interface ITax { id: number; name: string; amount: number; }
import { faTimes, faWindowMinimize } from "@fortawesome/free-solid-svg-icons"; import React, { useState } from "react"; import * as S from "./index.styled"; interface FullScreenModalProps { onClose: () => void; stackedElement?: React.ReactChild; } export const FullScreenModal: React.FC<FullScreenModalProps> = ({ ...
import { Component, h, Prop } from '@stencil/core'; import icons from '../../global/icons/timetable.json'; import getDocumentLang from '../../global/helpers/get-document-lang'; import { i18nClass, i18nOccupancy } from '../../global/i18n'; @Component({ shadow: true, styleUrls: { default: 'styles/lyn...
import { Component, ViewEncapsulation } from '@angular/core'; import { ValidatorFn, Validators } from '@angular/forms'; @Component({ selector: 'fdp-platform-textarea-counter-template-example', templateUrl: './platform-textarea-counter-template-example.component.html', encapsulation: ViewEncapsulation.None ...
export const isTestEnv = (): boolean => JSON.parse(process.env.REACT_APP_USE_TESTNET ?? 'true') export const getBlockExplorerBaseURL = () => `https://blockexplorer${isTestEnv() ? '.rinkeby' : ''}.boba.network`
import { AfterViewInit, ChangeDetectorRef, Component, ElementRef, Input, QueryList, ViewChildren, } from '@angular/core' import { AbstractControl, FormControl, FormGroup } from '@angular/forms' import { OrcidValidators } from 'src/app/validators' import { ErrorStateMatcherForFormLevelErrors } from '../.....
/* * Copyright 2017 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
export { default } from '@/components/pages/Callback';
/** * Orientation type for 'Stepped' lines */ export declare type Orientation = 'h' | 'v'; /** * Delay */ export declare type Delay = number | boolean; /** * Anchor type */ export declare type Anchor = string; export interface BaseProps { /** * Border color, Example: #f00, red, etc. */ borderCol...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="sah" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About coinscontrol</source> <translation type="unfinished"/> </message> <message> <location ...
import { Module } from '@nestjs/common'; import { TasksController } from './tasks.controller'; import { TasksService } from './tasks.service'; import {TypeOrmModule} from "@nestjs/typeorm"; import {TaskRepository} from "./task.repository"; import {AuthModule} from "../auth/auth.module"; @Module({ imports: [ Au...
import { ApiProperty } from '@nestjs/swagger'; import { IsNotEmpty } from 'class-validator'; export class CreateRentDto { @ApiProperty() @IsNotEmpty() auto_id: string; @ApiProperty() @IsNotEmpty() state_number: string; @ApiProperty() @IsNotEmpty() rent_start: string; @ApiProperty() @IsNotEmpty...
import * as assert from 'assert'; import { EOL } from 'os'; import { Position } from 'vscode-languageserver'; import { getCompletions } from '../../../../src/plugins/svelte/features/getCompletions'; import { SvelteDocument } from '../../../../src/plugins/svelte/SvelteDocument'; import { Document } from '../../../../src...
export const primaryLightest = "#dce3f5"; export const primaryLighter = "#9aade3"; export const primaryLight = "#3559c0"; export const primary = "#26408B"; export const primaryHover = "#1f3470"; export const secondary = "#efefef"; export const secondaryLight = "#e2e2e2"; export const favorite = "#ff4c4c"; export cons...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
type MidiChannel = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16; export { MidiChannel };
import { createContext } from "react"; import { Moralis } from "moralis"; import { AuthenticateOptions, Authentication, Login, Signup, } from "../../hooks/useMoralis/_useMoralisAuth"; import { SetUserData } from "src/hooks/useMoralis/utils/setUserData"; import { Web3EnableOptions } from "src/hooks/useMoralis/_u...
/** * Some utils taken from various parts of Nx: * https://github.com/nrwl/nx * * Thanks, Nrwl folks! */ import { Path, strings } from '@angular-devkit/core'; import { join, normalize } from '@angular-devkit/core'; import { Rule, SchematicContext, Tree, apply, applyTemplates, chain, mergeWith, move...
///<reference path="../../headers/common.d.ts" /> import coreModule from 'app/core/core_module'; var template = ` <label for="check-{{ctrl.id}}" class="gf-form-label {{ctrl.labelClass}} pointer" ng-show="ctrl.label"> {{ctrl.label}} <info-popover mode="right-normal" ng-if="ctrl.tooltip" position="top center"> ...
import { consoleLog, Authorizer, AuthorizationContext, DefaultDependencyResolver } from "@plumier/core" import { JwtAuthFacility } from "@plumier/jwt" import { sign } from "jsonwebtoken" import { authorize, domain, route, val } from "plumier" import Supertest from "supertest" import { reflect } from "tinspector" impor...
import React, {FC} from 'react'; import {DocContainer, DocEndpoint, RequestResponseSnippet} from 'components'; const ConfirmationValidatorApiConfig: FC = () => { return ( <DocContainer className="ConfirmationValidatorApiConfig" title="Config" lastUpdated="07 Dec 2020"> <p> All nodes will provide c...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="zh_CN" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Dobbscoin</source> <translation>关于比特币</translation> </message...
export interface InitFullKycProcessResponse { redirectUrl: string }
export { default as RoundFilterCenterFocus } from './Icon';
/*--------------------------------------------------------------------------------------------- * Copywight (c) Micwosoft Cowpowation. Aww wights wesewved. * Wicensed unda the MIT Wicense. See Wicense.txt in the pwoject woot fow wicense infowmation. *----------------------------------------------------------------...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. export interface IOZMetadata { contentVersion: string; baseUri: string; categories: IOZContractCategory[]; targetPoint: string; assets: IOZAsset[]; apiDocumentationBaseUri: string; openZeppelinVersion: string;...
import { Component, OnInit } from '@angular/core'; import { CompanyService } from '../services/company.service'; import { Router } from '@angular/router'; import { Company } from '../model/company'; @Component({ selector: 'app-companies', templateUrl: './companies.component.html', styleUrls: ['./companies.compon...
import React, { ReactNode, FunctionComponent } from 'react'; import { Undertittel, Undertekst, Element, Normaltekst, } from 'nav-frontend-typografi'; import { VerticalSpacer, FlexContainer, FlexRow, FlexColumn, AksjonspunktBox, Image, } from '@fpsak-frontend/shared-components'; import { createIntl } from '@fpsak-f...
import * as React from "react"; import Animation from "./Form/Css/Animation/Animation"; import Checkbox from "./Form/Input/Checkbox"; import { CssOptions } from "./Randomizables/Css/CssOptions"; import defaultOptions from "./defaultOptions"; import BackgroundColor from "./Form/Css/ColorProperties/BackgroundColor"; impo...
import { Application } from "./application" import { Context } from "./context" import { Definition } from "./definition" import { Module } from "./module" import { Multimap } from "@stimulus/multimap" import { Schema } from "./schema" import { Scope } from "./scope" import { ScopeObserver, ScopeObserverDelegate } from...
import type { Menu as MenuType } from '/@/router/types'; import { defineComponent, reactive, unref, computed, watch } from 'vue'; import { Layout, Menu } from 'ant-design-vue'; import { menuStore } from '/@/store/modules/menu'; import { useRouter, RouterLink } from 'vue-router'; import config from '/@/config/'; import ...
import { ScreenType, Permission } from 'nuudel-utils'; export interface IPostContent { title: string; date: string; slug: string; tags: string[]; _author: string; description?: string; content: string; } export interface ITagContent { slug: string; name: string; } export interface IPageContent { ...
/** * ctx.test.tsx * * @description Tests for the context hook and provider. * * @author jasmith79@gmail.com * @license MIT */ import 'jsdom-global/register'; import React from 'react'; import Enzyme, { shallow, mount } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; Enzyme.configure({ adapter: n...
/* * Copyright 2015-2016 Imply Data, Inc. * Copyright 2017-2018 Allegro.pl * * 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 * * Unl...
'use strict'; /** * Apriori.js - Apriori Algorithm(http://en.wikipedia.org/wiki/Apriori_algorithm) implementation in (TypeScript|JavaScript) * which is based on https://github.com/asaini/Apriori/blob/master/apriori.py. * * Copyright (c) 2014 Kazuhiro Sera * Licensed under the MIT license: http://www.opensource.org...
import { Behaviour } from '@core/behaviour/behaviour' import { Entity } from '@core/ecs/entity' import { World } from '@core/ecs/world' import { SpeechBalloonFactory } from '@game/entities/speechBalloonFactory' import { KeyController } from '@game/systems/controlSystem' export const talk = function* (entity: Entity, w...
import { HttpClient, HttpParams, HttpRequest, HttpUserEvent, HTTP_INTERCEPTORS, } from '@angular/common/http'; import { HttpClientTestingModule, HttpTestingController, TestRequest, } from '@angular/common/http/testing'; import { TestBed } from '@angular/core/testing'; import { Observable, of, Subscripti...
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { tap } from 'rxjs/operators'; import { BackendUrlService } from '../backend-url.service'; import { Message } from '../model/Message'; @Injectable({ providedIn: 'root' }) export cl...
export type ItemGroupId = number; export interface ItemHighlightGroup { id: ItemGroupId; name: string; enabled: boolean; /** * List of strings to match against items to determine * what to highlight. */ items: Array<string>; /** * IDs of stores that the ItemHighlightGroup should * apply to...
/** * https://discord.js.org/#/docs/main/stable/class/Client?scrollTo=e-voiceStateUpdate */ import { VoiceState } from "discord.js"; import { updateVoiceChatPermissions } from ".."; const execute = (oldState: VoiceState, newState: VoiceState) => { // If user joins voice if (oldState.channel === null && newState...