text
stringlengths
10
953k
/// <reference path="..\harness.ts" /> namespace ts { describe("Symbol Walker", () => { function test(description: string, source: string, verifier: (file: SourceFile, checker: TypeChecker) => void) { it(description, () => { const result = Harness.Compiler.compileFiles([{ ...
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import { Contract, ContractTransaction, EventFilter, Signer } from "ethers"; import { Listener, Provider } from "ethers/providers"; import { Arrayish, BigNumber, BigNumberish, Interface } from "ethers/utils"; import { Transacti...
import Common, { Chain, Hardfork } from '@ethereumjs/common' import { Address, BN, toBuffer, MAX_INTEGER, TWO_POW256, unpadBuffer, ecsign, publicToAddress, BNLike, } from 'ethereumjs-util' import { TxData, JsonTx, AccessListEIP2930ValuesArray, AccessListEIP2930TxData, FeeMarketEIP1559ValuesA...
import config from 'config' import { apiStatus } from '@storefront-api/lib/util' import cache from '@storefront-api/lib/cache-instance' import request from 'request' import Logger from '@storefront-api/lib/logger' function invalidateCache (req, res) { if (config.get('server.useOutputCache')) { if (req.query.tag ...
import { Component, OnInit, ViewContainerRef } from "@angular/core"; import { ModalDialogParams, ModalDialogOptions, ModalDialogService } from "nativescript-angular/modal-dialog"; import { Choice } from "~/app/models/products"; import { OrderDetail, ItemType } from "~/app/models/orders"; @Component({ selector: "mo...
// config/passport.js // load all the things we need var LocalStrategy = require('passport-local').Strategy; // load the auth variables var bcrypt = require('bcrypt-nodejs'); //load up data-access-layer import DTO = require('../dataAccessLayer/DTO/customerDTO'); import userManagementAdaptar = require('../dataAccessL...
import {Component} from "@angular/core"; @Component({ selector: 'view', template: ` <div class="twocolumn"> <router-outlet></router-outlet> </div> <!--<footer></footer>-->` }) export class RootComponent { constructor() { } }
/** * Service Catalog API * Manage solutions in Oracle Cloud Infrastructure Service Catalog. * OpenAPI spec version: 20210527 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. * Th...
/** * Unigraph-workspace: an experimental multiwindow workspace for Unigraph */ import React from 'react'; import LocalizationProvider from '@mui/lab/LocalizationProvider'; import FlexLayout, { Action, Actions, DockLocation, Model, Node, TabNode } from 'flexlayout-react'; import 'flexlayout-react/style/light.css';...
import { format, generateCodeFrame } from '../src/index' test('format', () => { expect(format(`foo: {0}`, 'x')).toEqual('foo: x') expect(format(`foo: {0}, {1}`, 'x', 'y')).toEqual('foo: x, y') expect(format(`foo: {x}, {y}`, { x: 1, y: 2 })).toEqual('foo: 1, 2') }) test('generateCodeFrame', () => { const sourc...
// @leosingleton/commonlibs - Common Libraries for TypeScript and .NET Core // Copyright (c) Leo C. Singleton IV <leo@leosingleton.com> // See LICENSE in the project root for license information. import { AsyncEventWaitHandle } from './AsyncEventWaitHandle'; import { IDisposable } from '../dotnet/Disposable'; /** Tim...
import compatData_ from './data.json'; // fancy way to import json that works in both node.js and the browser export const compatData = compatData_;
import { NextFunction, Request, Response } from "express"; import { Author } from "../../domain/models/Author"; import { AuthorService } from "../../infrastructure/services/AuthorService"; import { AuthorLookupDto } from "../../application/dtos/AuthorLookupDto"; import { AuthorDto } from "application/dtos/AuthorDto"; ...
import { Injectable } from '@angular/core'; import { Router, CanActivate, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { AuthenticationService } from './authentication.service'; @Injectable({ providedIn: 'root' }) export class AuthGuard implements CanActivate { constructor( ...
import { inject } from 'vue' import { useNamespace } from '@element-plus/hooks' import { ensurePosition, getFixedColumnOffset, getFixedColumnsClass, } from '../util' import { TABLE_INJECTION_KEY } from '../tokens' import type { TableColumnCtx } from '../table-column/defaults' import type { TableBodyProps } from '...
export const isDev = process.env.NODE_ENV === "development";
import { PropertyName } from ".."; import { CommandType } from "./types"; export interface Address { host: string; port: number; } export interface CmdCameraInfoResponse { params: Array<{ dev_type: number; param_type: number; param_value: string; }>; main_sw_version: string...
import { ConfigModule, ConfigService } from '@nestjs/config'; import { Connection, createConnection } from 'typeorm'; import { DB_CONNECTION, USER_REPOSITORY } from '../consts'; import { User } from '../entities/user.entity'; export const databaseProvider = { provide: DB_CONNECTION, imports: [ConfigModule], inje...
import * as React from 'react'; import Comment from './Comment'; import './Comment.css'; interface Data { id: number; author: string; text: string; } interface CommentListProps { data: Data[]; } interface CommentListState { } class CommentList extends React.Component<CommentListProps, CommentListState> { ...
import { Body, Controller, Delete, Get, Param, Post, Put, UseGuards, } from '@nestjs/common'; import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger'; import { JwtAuthGuard } from 'src/auth/guards/jwt-auth.guard'; import { UserDTO } from './dto/user.dto'; import { UserServ...
interface IBundle { [key: string]: string[]; } const bundles: IBundle = { enterprise: [ 'auditing', 'canned-responses', 'ldap-enterprise', 'livechat-enterprise', 'omnichannel-mobile-enterprise', 'engagement-dashboard', 'push-privacy', 'scalability', 'teams-mention', 'saml-enterprise', 'oauth-en...
import React from 'react'; import { Link } from 'gatsby'; import styles from './Menu.module.scss'; type Props = { menu: { label: string, path: string }[] }; const Menu: React.FC<Props> = ({ menu }) => ( <nav className={styles['menu']}> <ul className={styles['menu__list']}> {menu.map((item) => ...
/** @prettier */ import { Subscriber } from '../Subscriber'; import { Observable } from '../Observable'; import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; import { lift } from '../util/lift'; import { Subscription } from '../Subscription'; import { from } from '../observable/from'; /* tsl...
import {decoratorSchemaFactory} from "../utils/decoratorSchemaFactory"; /** * The pattern and Pattern Properties keywords use regular expressions to express constraints. * The regular expression syntax used is from JavaScript (ECMA 262, specifically). However, that complete syntax is not widely supported, therefore ...
import React from 'react' import Title from '../lib/title' import PageProps from './page-props' export default function Monitor(props:PageProps) { return <Title>Monitor</Title> }
/* eslint-disable @typescript-eslint/explicit-function-return-type */ import { h } from 'preact'; import { shallow } from 'enzyme'; import getElementComputedStyle from '../../../js/renovation/pager/utils/get_computed_style'; import { ResizableContainer, viewFunction as ResizableContainerComponent, ResizableContai...
export type TreeItem = { arrayIndex: number; data: any; } export type TreeRow = TreeItem[] export type Tree = TreeRow[] export type InputArray = any[] export interface INodeIndex { row: number, col: number } export enum Direction { Left = 1, Right = 2 }
import { noop } from '@queelag/core' import { Blank } from '../components/Blank' import { ComponentName } from '../definitions/enums' import { ComponentStoreProps, SidebarItem } from '../definitions/interfaces' import { SidebarProps } from '../definitions/props' import { ComponentStore } from '../modules/component.stor...
import React, { useState, useEffect } from 'react'; import { Switch, Route} from "react-router-dom"; import QuestionCard from './QuestionCard'; import LandingPage from './LandingPage'; import Results from './Results'; /* This page is the parent of all other child components. Because I want all of my Data from the...
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { enableProdMode } from '@angular/core'; import { AppModule } from './app/app.module'; if(process.env.NODE_ENV === 'production'){ enableProdMode(); } platformBrowserDynamic().bootstrapModule(AppModule);
/** * Copyright 2019 AXA Group Operations S.A. * * 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 la...
/* eslint-disable @typescript-eslint/no-unused-expressions */ import { Injectable } from '@angular/core'; import { SupplierModel } from '../models/supplier.model'; import { LocationsService } from './locations.service'; import { SuppliersService, TeamsService } from '../api/services'; import { Observable } from 'rxjs/i...
export { ApiService } from './api'; export { CommentsService } from './commentsService'; export { Comments } from './comments'
import { Box, Grid, makeStyles, Theme, Typography } from "@material-ui/core"; import { Skeleton } from "@material-ui/lab"; import { PrimaryButton } from "@olympusdao/component-library"; import React, { ReactNode } from "react"; import { AddressMap } from "src/constants/addresses"; import { useContractAllowance } from "...
export const mockAdd = jest.fn() // export and mock it in test mockAdd.mockReturnValue(12) export const add = mockAdd export default { add, }
import Vue from 'vue' import { AnalysisJSONI, ConditionalInstructionI, ConversionTypesI, NameRequestI, RefundParamsIF, SelectOptionsI, StaffPaymentIF, StateIF, StatsI, SubmissionTypeT, WaitingAddressSearchI } from '@/interfaces' import { EntityType, Location, NameCheckErrorType, PriorityCode, Req...
import type { GitmarsMultiOptionType } from '../../typings' ;(function (root) { const cmdConfig: GitmarsMultiOptionType = { command: 'admin', short: null, create: { command: 'create', short: null, args: [ { required: tru...
// Copyright 2021 The Prometheus 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 agreed to...
namespace pxsim.basic { export function setLedColor(c: number) { board().rgbLedState = c; runtime.queueDisplayUpdate() } export function turnRgbLedOff() { board().rgbLedState = 0; runtime.queueDisplayUpdate() } }
export class PwaMenuItem { constructor( public key: string, public title: string, public clickable: boolean, public subMenuItems: PwaMenuItem[] = [] ) { } getAllSubItemsIncludingThis() { let items: PwaMenuItem[] = [this]; this.subMenuItems.forEach(smi => item...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { RegisterComponent } from './routes/root/register.component'; const routes: Routes = [ { path: '', component: RegisterComponent } ]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: ...
import axios from 'axios'; import VueI18n from 'vue-i18n'; import App from './app'; export default class Language { static loadedLanguages: Array<string> = ['en']; i18n: VueI18n; constructor(app: App, messages: any) { let defaultLocale = app.config.i18n.defaultLocale; let fallbackLoca...
import { IsEnum, IsNotEmpty } from 'class-validator'; import { CategoryLevel, CategoryStatus } from 'src/schemas/category.schema'; export class PostCategoryBodyDto { @IsNotEmpty() name: string; @IsNotEmpty() image: string; @IsNotEmpty() @IsEnum(Object.keys(CategoryLevel).filter((key) => typeof key === 'n...
import fs from "fs"; import { pathExists } from "fs-extra"; import { joinPaths, nAtATime, execAndThrowErrors, npmInstallFlags } from "@definitelytyped/utils"; import { PreparePackagesOptions, PreparePackagesResult } from "./types"; export async function prepareAllPackages({ definitelyTypedPath, noInstall }: Prepar...
import {ShardingManager} from "discord.js" import * as config from "./config.json" require("dotenv").config() const token = config.testing === "off" ? process.env.TOKEN : process.env.TEST_TOKEN const manager = new ShardingManager("./index.js", {token}) manager.spawn("auto", 15000, 10000000) manager.on("shardCreate", (...
export type CategoryObject = { readonly id?: string; readonly name?: string; readonly files?: KarabinerJsonFileObject[]; }; export type KarabinerJsonFileObject = { readonly path?: string; readonly json?: { readonly title?: string; readonly maintainers?: string[]; readonly rules?: { readonly...
import StringUtil from "@/common/StringUtil"; import UploadFileService from "@/services/UploadFileService"; import CommonNotice from "@/common/CommonNotice"; export default class UploadHeartbeat { private static inst = new UploadHeartbeat(); private handler: any = -1; private server: string = ""; publi...
import { PureComputed } from '@devexpress/dx-core'; import { Getters } from '@devexpress/dx-react-core'; import { TableColumn, TableRow, GetCellColSpanFn } from './table.types'; import { RIGHT_POSITION, LEFT_POSITION } from '../plugins/virtual-table/constants'; /** @internal */ export type GetColumnWidthFn = PureCompu...
export * from './toastr.module';
import * as React from 'react'; const Javascript24FilledIcon = () => { return( <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M3 6.25C3 4.45507 4.45507 3 6.25 3H17.75C19.5449 3 21 4.45507 21 6.25V17.75C21 19.5449 19.5449 21 17.75 21H6.25C4.45507 21 3 1...
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0, (the "License"); you ma...
import classNames from "classnames"; import React, { ReactNode } from "react"; import { TableProps } from "./TableProps"; /** * Component to create a Table. */ export class Table extends React.PureComponent<TableProps> { /** * Render the component. * @returns The node to render. */ public rend...
import { buildFederatedSchema } from '@apollo/federation'; import { GraphQLSchema } from 'graphql'; import contract from './contract'; import endpoint from './endpoint'; export * from './server'; export const schema: GraphQLSchema = buildFederatedSchema([ contract, endpoint, ]);
import { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios' import Vue from 'vue' interface NuxtAxiosInstance extends AxiosInstance { $request<T = any>(config: AxiosRequestConfig): Promise<T> $get<T = any>(url: string, config?: AxiosRequestConfig): Promise<T> $delete<T = any>(url: string...
import { Mutation, Resolver, Arg } from "type-graphql"; import { Product } from "../../../entities/Product"; import { WhereUniqueInput } from "../../../types/input/WhereUniqeInput"; @Resolver() export class DeleteProductResolver { @Mutation(() => Product) async deleteProduct(@Arg("where") { id }: WhereUniqueInput)...
import { CreditWithId } from '../module'; export const artist: CreditWithId = { name: 'DCT', id: 4668, };
import { StackNavigationProp } from '@react-navigation/stack'; import React, { useEffect } from 'react'; import { Switch } from 'react-native'; import { RadioButton } from 'react-native-ui-lib'; import { useDispatch, useSelector } from 'react-redux'; import { setPreference } from '../actions/sortPreferences'; import {...
/** * @author WMXPY * @namespace Geometry_Calculate * @description Range */ import { Coordinate, CoordinateRange, createInfinityRange, GetCoordinateFunction } from "../declare/declare"; export const getLinearRangeByCoordinates = (coordinates: Coordinate[]): CoordinateRange => { const reduced: CoordinateRange...
import { Component, OnInit, Inject } from '@angular/core'; import { NbAuthResult, NbAuthToken, NbAuthService, NB_AUTH_OPTIONS, getDeepFromObject, nbAuthCreateToken, NbAuthJWTToken, NbAuthOAuth2JWTToken } from '@nebular/auth'; import { Router } from '@angular/router'; @Component({ selector: 'ngx-login...
import { IStockService } from '../primary-ports/stock.service.interface'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { Stock } from '../../infrastructure/stock.entity'; import { StockMoney } from '../models/stock-money.model'; import {HttpException, HttpStatus} from...
import { NowResponse } from "@vercel/node" export const setHeaders = ( res: NowResponse, headers: Record<string, any> ): void => { for (const [name, value] of Object.entries(headers)) { res.setHeader(name, value) } }
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-select-forms', templateUrl: './select-forms.testpage.component.html' }) export class SelectFormsTestPageComponent implements OnInit { // ux-select configuration proper...
import fetch from "fetch-with-proxy"; import { Op } from "sequelize"; import { Document, Integration, Collection, Team } from "@server/models"; import { presentSlackAttachment } from "@server/presenters"; import { DocumentEvent, IntegrationEvent, RevisionEvent, Event, } from "../../types"; export default class...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="he" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Deancoin</source> <translation>אודות לייטקוין</translation> </me...
import { h } from "preact"; import { useState } from "preact/hooks"; import { Editor } from "../Editor"; import { Section } from "../../doc"; import { SectionContainer, Tools, SectionBodyContainer } from "./UI"; import { Button } from "../UI"; export type SectionEditingProps = { sectionID: string; headSection: Se...
import { Service, CharacteristicValue, Characteristic } from 'homebridge'; import { DeviceReport, DeviceType } from 'scout-api'; import { AccessoryContext } from '../../../src/accessoryFactory'; import { SensorAccessoryContext } from '../../../src/accessoryFactory/sensorAccessoryFactory'; import { HomebridgeContext, Sc...
import BarChart from "components/BarChart"; import DataTable from "components/DataTable"; import DonutChart from "components/DonutChart"; import Footer from "components/Footer"; import NavBar from "components/NavBar"; const Dashboard = () => { return ( <> <NavBar /> <div className="contain...
export = MoneroVersion; /** * Models a Monero version. */ declare class MoneroVersion { /** * Construct the model. * * @param number is the version number * @param isRelease indicates if this version is a release */ constructor(number: any, isRelease: any); state: {}; getNumbe...
export {}; //# sourceMappingURL=use_styled_system.d.ts.map
import {Component, ChangeDetectionStrategy} from '@angular/core'; import {FieldComponent} from '../../field/field.component'; import {FieldData} from '../../interfaces/field-data.interface'; @Component({ selector: 'fb-checkbox', templateUrl: './checkbox.component.html', styleUrls: ['./checkbox.component.scss'], ...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable, throwError, combineLatest, BehaviorSubject, Subject, merge, from } from 'rxjs'; import { catchError, tap, map, scan, shareReplay, mergeMap, toArray, filter, switchMap } from 'rxjs/operators'; import { P...
import { body } from 'express-validator'; import { each, get, map, set } from 'lodash'; import { IResourceData, IResourceRequestData, Resource } from './resource'; export interface IFileData extends IResourceData { title?: string; filename: string; src: string; description?: string; author?: strin...
import {Component, Input} from '@angular/core'; type Sequencable = {name: string, sequences: number[]}; @Component({ selector: 'sequence-table', templateUrl: './SequenceTable.component.html', styleUrls: ['./SequenceTable.component.less'] }) export class SequenceTableComponent { @Input() getSemesters: (object: obj...
/* * Copyright Amazon.com, Inc. or its affiliates. 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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="et" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About EB3Coin</source> <translation>EB3Coinist</translation> </message...
import { IdentityInterface } from '../common/interfaces/IdentityInterface'; import { LegacyIdentityInterface } from '../common/interfaces/LegacyIdentityInterface'; export type ResultInterface = IdentityInterface; export type ParamsInterface = IdentityInterface | LegacyIdentityInterface; export const handlerConfig = { ...
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnDestroy, OnInit, } from '@angular/core'; import { T } from '../../t.const'; import { ConfigFormConfig, ConfigFormSection, GlobalConfigSectionKey, } from '../../features/config/global-config.model'; import { Project, ProjectCfgFormKey } fr...
import React from 'react' import Links from '../data/Links' import { scrollTo } from '../util' export default function Footer() { return ( <> <footer className="relative bg-gray-300 pt-20 pb-6"> <div className="bottom-auto top-0 left-0 right-0 w-full absolute pointer-events-none overflow...
import type { ParsedConfirmedTransaction } from "@solana/web3.js"; import type { SailTransactionLoadError } from "../../errors"; export type KeyedTransactionInfo = { transactionId: string; transactionInfo: ParsedConfirmedTransaction; }; /** * Transaction id + info. * This is null if the transaction could not b...
/* globals afterEach */ import 'mocha'; import * as _ from 'lodash'; import { DocumentStore, ClientStore, SearchStore } from '../src/assets/ts/datastore'; import { InMemory, SynchronousInMemory } from '../src/shared/data_backend'; import Document from '../src/assets/ts/document'; import Session from '../src/assets/ts...
export default useKeyboardShortcut; type callbackFn = (heldKeys: string[]) => void; declare function useKeyboardShortcut( shortcutKeys: string[], callback: callbackFn, options?: { overrideSystem?: boolean; ignoreInputFields?: boolean; ignoreElementWithClassName?: string[]; } ): void;
import { h, Component, Host, Element, Prop } from '@stencil/core'; import { UiColor, UiSize } from "../../../utils/ui-types"; import { UiCommon } from "../../../utils/ui-common"; @Component({ tag: 'ui-modal-body', styleUrl: 'ui-modal-body.css', shadow: true }) export class UiModalBody { @Element() el: ...
import { ElementRef } from "@angular/core"; import { TabLink } from "../layout/tabs/tab-link"; import { WizardDeprecated } from "./wizard"; export declare class WizardStep extends TabLink { private wizard; private elementRef; title: string; isCompleted: boolean; isSkipped: boolean; id: string; ...
/** * @license * Copyright 2020 Google LLC. 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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
import { AfterViewInit, Component, Input, OnInit } from '@angular/core'; import * as Chart from 'chart.js'; @Component({ selector: 'app-chart-js', templateUrl: './chart-js.component.html', styleUrls: ['./chart-js.component.scss'] }) export class ChartJsComponent implements OnInit, AfterViewInit { @Input() dat...
import 'reflect-metadata'; import '../polyfills'; import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { AppRoutingModule } from './app-ro...
import express, { Request, Response } from 'express'; import teapot from '../../src'; const app = express(); app.get('/errors/:code', (req: Request, res: Response): void => { throw teapot.error(req.params.code); }); export default app;
import { Auth } from 'aws-amplify'; import { createMachine, sendUpdate } from 'xstate'; import { AuthEvent, ResetPasswordContext } from '../../../types'; import { runValidators } from '../../../validators'; import { clearError, clearFormValues, clearTouched, clearUsername, clearValidationError, handleInput,...
import { Diagram } from "../../ts-diagram"; import { ISidebarConfig } from "./types"; export declare class Sidebar { protected _config: ISidebarConfig; protected _events: any; private _ui; private _diagram; private _selectItem; constructor(diagram: Diagram, config?: ISidebarConfig, events?: any)...
// Locally unique id's. We use this to generate transaction ids, and they don't have to be cryptographically // unique, as the worst that can happen is that they get rejected because of a collision, and then we should just // retry with a new id. export default function luid() { function s4() { return Math.floor...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="zh_CN"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About KelleyCoin</source> <translation>关于凯莱币</transla...
import { Connection } from 'typeorm'; import { OrganizationPositions } from './organization-positions.entity'; import { DEFAULT_ORGANIZATION_POSITIONS } from './default-organization-positions'; import { IOrganization, ITenant } from '@gauzy/contracts'; export const seedDefaultOrganizationPosition = async ( connection...
// required method for any custom modal/snackbar to display export interface IPopup { show(): void; }
import {TComposition, TFolder} from 'remotion'; import {CompositionSelectorItemType} from '../components/CompositionSelectorItem'; import {openFolderKey} from './persist-open-folders'; export const splitParentIntoNameAndParent = ( name: string | null ): {name: string | null; parent: string | null} => { if (name === ...
import { GraphQLResolveInfo } from "graphql"; import { parseResolveInfo as graphQlParseResolveInfo } from "graphql-parse-resolve-info"; export * from "./MutationBuilder/types"; export * from "./QueryBuilder/types"; export function parseResolveInfo<TArgs>(info: GraphQLResolveInfo): IParsedResolveInfo<TArgs> { return ...
import {Z80RegistersClass, Z80_REG, Z80Registers} from './z80registers'; import {RefList} from '../misc/refList'; import {CallStackFrame} from '../callstackframe'; import {EventEmitter} from 'events'; import {GenericWatchpoint, GenericBreakpoint} from '../genericwatchpoint'; import {Labels, SourceFileEntry} from '../la...
import React from 'react' import ContextB from './ContextB' const ContextA = () => <ContextB/> export default ContextA
/* * Copyright (c) 2018 Rain Agency <contact@rain.agency> * Author: Rain Agency <contact@rain.agency> * * 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 wi...
import React from "react" import { Helmet } from "react-helmet" import { useStaticQuery, graphql } from "gatsby" interface Props { description?: string lang?: string title: string image: string } function Seo({ description, lang, meta, title, image }: Props) { const { site, file } = useStaticQuery( grap...
import { Controller, Get, Post, Body, Param, Delete, Put, Query } from '@nestjs/common'; import { RecordsService } from './records.service'; import { CreateRecordDto } from './dto/create-record.dto'; import { UpdateRecordDto } from './dto/update-record.dto'; import { ContentTypesEnum } from '../../shared/enums/content-...