text
stringlengths
10
953k
export class AppError { public readonly message; public readonly statusCode; constructor(message: string, statusCode = 400) { this.message = message; this.statusCode = statusCode; } }
import {getClientRect, createElement} from './dom/dom'; import {getContainer} from './dom/tags'; import {classNames} from './classNames'; import {Config} from './config'; import scrollbarSize from 'scrollbar-size'; import {Tree} from './components/Tree'; import {Timeline} from './components/Timeline'; import {TimelineS...
export { default } from './WeatherDetailItem'
/// <reference types="cheerio" /> export declare function cleanDek(dek: string, { $, excerpt }: { $: cheerio.Root; excerpt?: string; }): string | undefined;
import { test, expect } from '@playwright/test'; test('basic found test', async ({ page }) => { await page.goto('https://mango-mushroom-00bed2310.azurestaticapps.net/'); const title = page.locator('.Home'); await expect(title).toHaveText('Home View 1Lorem ipsum dolor sit amet, consectetur adip.'); });
import '@testing-library/jest-dom' import { render, waitFor, screen, act, fireEvent, createEvent } from '@testing-library/react' import { findByText } from '@testing-library/dom' import React, { useEffect, useRef } from 'react' import { ChartProvider, Field } from '../packages/echarts-readymade/src/index' import { Ba...
import React, { RecoilRoot, create, mount } from '@app/test-utils'; import * as TestSubject from '@app/theme'; import ThemeAtom, { Theme } from '@models/theme'; import { MuiThemeProvider } from '@material-ui/core'; describe(`${TestSubject.ThemeProvider.displayName}`, () => { it('exports default', () => { expect...
import { h, Component, Event, EventEmitter, Method, Prop, State } from '@stencil/core'; @Component({ tag: 'os-alert', }) export class Alert { @Prop() type: string = ''; @Prop() dismissible: boolean = false; @Prop() open: boolean = false; @State() _isOpen: boolean = false; @Event({ eventName: 'c...
/** * @file Scan 扫描 * @author Auto Generated by IconPark */ /* tslint:disable: max-line-length */ /* eslint-disable max-len */ import {ISvgIconProps, IconWrapper} from '../runtime'; export default IconWrapper('scan', (props: ISvgIconProps) => ( '<?xml version="1.0" encoding="UTF-8"?>' + '<svg width="' + pr...
import superagent, { Response } from 'superagent'; import prefix from 'superagent-prefix'; import { v4 as uuidv4 } from 'uuid'; import { IErrorInfo } from '@/types'; const baseURL = process.env.NEXT_PUBLIC_SIMPLEKANBAN_API_URL || '/api'; export const parseErrorResponse = ( response: any, fields: string[], ): IE...
import { PuzzleLocale } from '@/types/puzzle-config' export const ja = <PuzzleLocale>{ title: 'カエルの入れ替えパズル(1)', story: `一列に並んだ葉の上に、ヒキガエル(toad)とカエル(frog)が2匹ずつ、向かい合って並んでいる。これらを移動させ、お互いの位置を入れ替えたい。 カエル達は1歩先に進むことしかできないが、2つ隣の葉が空いていれば、別のカエルを飛び越えて進むことはできる。 さて、最小回数ですべてのカエル達を入れ替えるには、どうすればよいだろうか? 登場人物: ヒキガエル(toad):...
import { Card } from '../../../interfaces' import Set from '../Sword & Shield' const card: Card = { name: { en: "Air Balloon", fr: "Ballon", es: "Globo Helio", it: "Palloncino", pt: "Balão de Ar", de: "Luftballon" }, illustrator: "Yoshinobu Saito", rarity: "Secret Rare", category: "Trainer", set: Se...
import { BaseModelVm } from '../../../shared/base.model'; import { UserRole } from '../user-role.enum'; import { ApiModelProperty, ApiModelPropertyOptional, } from '@nestjs/swagger/dist/decorators/api-model-property.decorator'; import { EnumToArray } from '../../../shared/utilities/enum-to-array'; export class Use...
import React, { FC } from 'react'; import { PageProps, Link } from 'gatsby'; import Layout from '../../views/organisms/layouts/layout'; import SEO from '../../views/organisms/layouts/seo'; const FairyPage: FC<PageProps> = () => ( <Layout> <SEO title="fairy" /> <p>工事中…</p> <Link to="/fairy/privacypolicy"...
/* In NativeScript, the app.ts file is the entry point to your application. You can use this file to perform app-level initialization, but the primary purpose of the file is to pass control to the app’s first module. */ import { Application } from '@nativescript/core'; Application.run({ moduleName: 'main' }); /* Do ...
/* MIT License Copyright (c) 2021 Looker Data Sciences, Inc. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modi...
import mapValues from 'lodash/mapValues'; import Immutable, { Map } from 'immutable'; import React from 'react'; export const SELECT_WIDTH_OFFSET_RIGHT = 48; const DEFAULT_FONT_SIZE = '14px'; const DEFAULT_FONT_FAMILY = "'Helvetica Neue', Helvetica, Arial, sans-serif"; // RegExp.quote = function (str) { // return...
import {ICheckoutPageState} from "src/shared/components/Pages/CheckoutPage/types"; import {checkoutPaymentMethodsNames} from "src/shared/components/Pages/CheckoutPage/constants"; export const mutateDeliverySelectionAddNew = (prevState: ICheckoutPageState): Pick<ICheckoutPageState, "deliverySelection" | "stepsComple...
import { OutputData } from "@editorjs/editorjs"; import { ChannelCollectionData } from "@saleor/channels/utils"; import { createChannelsChangeHandler } from "@saleor/collections/utils"; import { MetadataFormData } from "@saleor/components/Metadata"; import { RichTextEditorChange } from "@saleor/components/RichTextEdito...
/* * Squidex Headless CMS * * @license * Copyright (c) Squidex UG (haftungsbeschränkt). All rights reserved. */ import { Component, OnInit } from '@angular/core'; import { FormBuilder } from '@angular/forms'; import { ActivatedRoute, Router } from '@angular/router'; import { ActionForm, ALL_TRIGGERS, ResourceOwne...
import { Coin } from '../coin' export class Litecoin implements Coin { name = 'litecoin' segwit = true coinType = 2 mainnetConstants = { messagePrefix: '\x18Litecoin Signed Message:\n', wif: 0xb0, legacyXPriv: 0x019d9cfe, legacyXPub: 0x019da462, wrappedSegwitXPriv: 0x01b26792, wrappedSe...
/* eslint-disable no-bitwise */ import * as DiffMatchPatch from 'diff-match-patch'; import { TextQuoteSelector, TextPosition } from '../types'; const SLICE_LENGTH = 32; const SLICE_RE = new RegExp(`(.|[\r\n]){1,${String(SLICE_LENGTH)}}`, 'g'); const toTextPosition = ( root: HTMLElement, selector: TextQuoteSelecto...
import { MessageActionRow, CategoryChannel, MessageButton, Snowflake, Channel, } from "discord.js"; import { ComponentMessage } from "@fire/lib/extensions/componentmessage"; import { FireTextChannel } from "@fire/lib/extensions/textchannel"; import { GuildTagManager } from "@fire/lib/util/guildtagmanager"; im...
import { ClassConstructor, plainToInstance } from 'class-transformer'; export function FillDefaults<T>( constructor: ClassConstructor<T>, ): MethodDecorator { return function ( target: unknown, key: string, descriptor: PropertyDescriptor, ): unknown { const original = descriptor.value; descri...
import { faQuestionCircle } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { Add, ChevronRight, PhotoCamera, Replay, Shuffle, Update } from '@mui/icons-material'; import { Alert, Box, Button, ButtonGroup, CardContent, CardHeader, CircularProgress, Grid...
import { HttpClient, HttpHeaders } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { Credentials } from '../../Models/Request/Credentials'; const AUTH_API = 'http://localhost:9092/api/auth/'; const httpOptions = { headers: new HttpHeaders({ 'Content...
import React from 'react'; import { Image, Tag } from 'antd'; import styled from 'styled-components'; import { Link } from 'react-router-dom'; const EntityTag = styled(Tag)` margin: 4px; `; const TitleContainer = styled.div` display: flex; align-items: center; justify-content: space-between; paddi...
import React, { FunctionComponent, useState, FormEvent } from "react"; import PageHeader from "../../components/PageHeader"; import "./styles.css"; import TeacherItem, { Teacher } from "../../components/TeacherItem"; import Input from "../../components/Input"; import Select from "../../components/Select"; import api ...
export declare class LinkTargetIDList { IDList: Array<ItemID>; IDListSize: number; TerminalID: number; constructor(file?: ArrayBuffer); parse(buf: ArrayBuffer): void; } export interface ItemID { ItemIDSize: number; Data: Uint8Array; }
import { getTDPRows } from 'tdp_core/src/rest'; import { resolve } from 'phovea_core/src/idtype'; import { AView } from 'tdp_core/src/views/AView'; import * as d3 from 'd3v4'; import './style.scss'; interface IRow { _id: number; b_cat1: string; b_cat2: string; b_int: number; b_name: string; b_real: number;...
export enum Actions { ADD_NOTE = 'ADD_NOTE', SWAP_NOTE = 'SWAP_NOTE', UPDATE_NOTE = 'UPDATE_NOTE', TOGGLE_TRASHED_NOTE = 'TOGGLE_TRASHED_NOTE', TOGGLE_FAVORITE_NOTE = 'TOGGLE_FAVORITE_NOTE', DELETE_NOTE = 'DELETE_NOTE', PRUNE_NOTES = 'PRUNE_NOTES', ADD_CATEGORY_TO_NOTE = 'ADD_CATEGORY_TO_NOTE', PRUNE_...
import { ToolBase } from '../tool-base'; import { mxgraph } from 'mxgraph'; import { Config } from '../../../../../../../../config/config'; import { SpecmateDataService } from 'src/app/modules/data/modules/data-service/services/specmate-data.service'; import { SelectedElementService } from 'src/app/modules/views/side/m...
export * from './vector';
import { app, BrowserWindow } from "electron"; import * as path from "path"; import * as url from "url"; let mainWindow: Electron.BrowserWindow | null; function createWindow() { mainWindow = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true, ...
/// <reference types="react" /> import { BaseComponent } from '../../Utilities'; import { IChoiceGroup, IChoiceGroupOption, IChoiceGroupProps } from './ChoiceGroup.types'; export interface IChoiceGroupState { keyChecked: string | number; /** Is true when the control has focus. */ keyFocused?: string | numbe...
import { Nullable } from "../../../shared/types"; import * as React from "react"; import { MenuItem, MenuDivider } from "@blueprintjs/core"; import { Omnibar as BPOmnibar } from "@blueprintjs/select"; export interface IOmnibarItem { /** * Defines the id of the item. */ id: string; /** * De...
import redirect from '../../components/redirect' export default redirect('/en/dashboard')
import { BookedExpireEventRepo, IBookedExpireEventDocument, } from '../data-abstracts/repositories/booked'; import { logger } from '../../middleware/common/logging'; import { NotFound_404, Conflict_409, Unprocessable_422, } from '../../business-layer/utils/errors/ApplicationError'; export class BookedExpi...
// package: clarifai.api.utils // file: proto/clarifai/api/utils/extensions.proto /* tslint:disable */ /* eslint-disable */ import * as jspb from "google-protobuf"; import * as google_protobuf_descriptor_pb from "google-protobuf/google/protobuf/descriptor_pb"; export const clShowIfEmpty: jspb.ExtensionFieldInfo<bool...
import { Structure as _Structure_ } from "@aws-sdk/types"; export const _AvailabilityZoneDetail: _Structure_ = { type: "structure", required: [], members: { Name: { shape: { type: "string" } } } };
import { useMutation, UseMutationOptions } from 'react-query'; import { AuthService, ChangePasswordInputType, ForgetPasswordInputType, LoginInputType, OtpLoginInputType, RegisterUserInputType, ResetPasswordInputType, SendOtpCodeInputType, SocialLoginInputType, UpdateContactInput, VerifyOtpInputTyp...
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import test from '@romejs/test'; import {testLint} from '../../api/lint.test'; test('Dangling backslash in regex', async (t) => {...
declare module "redux-store-templates/counter"; import { Reducer } from "redux"; import { ApplyOptions } from '../models'; export type CounterState = number; /* crate reducer */ export interface CreateReducerOptions { initial:number, incrementOn?:ApplyOptions; decrementOn?:ApplyOptions; incrementByOn?:Apply...
import {IsInt, IsString } from "class-validator"; export class AddRoleDto { @IsString({message: 'Должен быть строкой'}) readonly value: string; @IsInt({message: 'Должен быть целым числом'}) readonly userId: number; }
import express, { Application, NextFunction, Request, Response } from 'express'; import cors from 'cors'; import helmet from 'helmet'; import { IConfig } from './types'; export function attachMiddlewareFirst(conf: IConfig, app: Application, log = console): void { app.disable('x-powered-by'); app.use(helmet()); a...
import * as actions from "@nteract/actions"; import { monocellNotebook } from "@nteract/commutable"; import { executeRequest, createMessage } from "@nteract/messaging"; import * as stateModule from "@nteract/types"; import Immutable from "immutable"; import { StateObservable } from "redux-observable"; import { empty, ...
import React from 'react'; import { TMouseEventRenderer } from './MouseCoordinates'; const renderCoordinates: TMouseEventRenderer = ({ x, y }) => ( <div> <span className="test">Mouse coordinates:</span> <br /> <span>x = {x ? x : '?'}</span> <span>{' '}</span> <span>y = {y ...
import React, { useState, useRef } from 'react' import { trpc } from '../utils/trpc' export default function Register() { const inputRef = useRef(null) const createUserMutation = trpc.useMutation(['createUser']) const handleCreateAccount = async () => { const name = inputRef.current.value const result = ...
import createAPIGatewayProxyHandler from "aws-sdk-plus/dist/createAPIGatewayProxyHandler"; import { BadRequestError, NotFoundError, ForbiddenError, } from "aws-sdk-plus/dist/errors"; import clerkAuthenticateLambda from "@dvargas92495/api/clerkAuthenticateLambda"; import connectTypeorm from "@dvargas92495/api/conn...
import { Component, ElementRef, Injector, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core'; import { Observable, Subscription } from 'rxjs'; import { QueryResource } from 'core-app/features/hal/resources/query-resource'; import { BoardListComponent } from 'core-app/features/boards/board/board-list/boar...
import SpotifyCard from '@/components/cards/SpotifyCard'; import ExternalLink from '@/components/links/ExternalLink'; import SocialIcons from '@/components/SocialIcons'; export default function Footer() { return ( <footer className='mx-auto mt-auto w-full max-w-3xl px-4 sm:px-0'> <div className=' border-gr...
/** * 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 without restriction, including without limitation * th...
import { AbstractSuperSet } from './abstractSuperSet' import { Comparator, ORDER } from '../types/types' /** * SortedSetInterface<T> * * Ordered set (order by comparator result ASC/DESC) */ export class SortedSet<T> extends AbstractSuperSet<T> implements SortedSet<T> { /** * sort */ protected sort: ORDER...
import { useFakeTimers, SinonFakeTimers } from 'sinon' import { mock, restore } from 'aws-sdk-mock' import { handler } from './snapshotEncrypted' import { expect } from 'chai' /** test2 */ describe('ebs snapshots should be encrypted', () => { const now = new Date(0) let clock: SinonFakeTimers beforeEach(() => ...
import { HttpClient } from '@angular/common/http'; import { ParsedProperty } from '@angular/compiler'; import { Component, Inject} from '@angular/core'; import { observable } from 'rxjs'; import {sentenciaXpath} from '../app/Estructuras/sentenciaXpath' import {Objeto} from '../Expresiones/Objeto' import { OperacionXpat...
import readme from './readme.md' export default function(stories, knobs) { const mainEl = document.createElement('div'); // do this OUTSIDE the render function below stories.add('Hub Statistic', () => { const label = knobs.text('label', 'Population Aged 65 Years and Older'); const value = knobs.te...
/* Some peripheral tools to calculate trading amounts If you don't need these tools, you can remove this file to reduce the package size. */ import { computeAccount, computeAMMTrade, computeAMMPrice, computeAMMOpenInterest, computePerpetualOpenInterestLimit } from './computation' import { BigNumberish, InvalidArgu...
import { Injectable } from '@angular/core'; import { Card } from './models/card'; import { HttpClient } from '@angular/common/http'; import { DrawCardResponse } from './models/draw-card-response'; // we can also provide the service in modules or in components // and that will scope the service to the lifetime of that ...
import { GraphQLTagPluckOptions } from '.'; import { ParserOptions } from '@babel/parser'; export default function generateConfig(filePath: string, code: string, _options: GraphQLTagPluckOptions): ParserOptions;
import { BadRequestException, NotFoundException, UnauthorizedException } from "@nestjs/common"; export class PaymentNotFound extends NotFoundException { constructor() { super({ code: 'ERR_PAYMENT_NOT_FOUND', message: 'Could not find payment' }); } } export class Payment...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { RegisterComponent } from './register.component'; describe('RegisterComponent', () => { let component: RegisterComponent; let fixture: ComponentFixture<RegisterComponent>; beforeEach(async(() => { TestBed.configureTestingModu...
/** * @packageDocumentation * @module String */ import { isObservable, Observable, of, Subscribable } from 'rxjs'; /** * @private * @internal * @param input */ export function createOrReturnObservable<T extends unknown>(input: Subscribable<T> | T): Observable<T> { return (isObservable(input) ? input : of(inpu...
// types below are necessary for typescript-rest-swagger export type JsonValue = { [key: string]: any; };
import { Injectable } from '@angular/core'; import { saveAs } from 'file-saver'; import * as localforage from 'localforage'; import { from, Observable } from 'rxjs'; import { mergeMap } from 'rxjs/operators'; @Injectable() export class StorageService { storage: any; constructor() { this.storage = localforage...
import { ApiService } from '../services/api'; export class Login { private username = ''; private password = ''; constructor(private api: ApiService) { } async login() { await this.api.login(this.username, this.password); } }
import { Injectable } from '@angular/core'; import { AngularFireStorage, AngularFireStorageReference, AngularFireUploadTask } from '@angular/fire/storage'; import { last, mergeMap } from 'rxjs/operators'; import { BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root' }) export class ImageService { ...
import * as actions from './actions'; import * as constants from './constants'; import epics from './epics'; const moduleName = 'ipfsRoom'; export { moduleName, actions, constants, epics, };
import { isElectron } from './isElectron'; import log from 'loglevel'; import { DEFAULT_ELECTRON_LOG_FORMAT, DEFAULT_ELECTRON_LOG_BASE_UNIT, DEFAULT_ELECTRON_LOG_SIZE, } from '../constants'; const logger = () => { if (isElectron()) { const log = window.require('electron').remote.require('electron-log'); ...
export declare class ResetPasswordDTO { username: string; email: string; phoneNumber: number; }
import {FetchOptions} from './Fetcher'; import {Project} from './Project'; import {Report} from './Report'; import {Descriptor, Locator, Package} from './types'; export type MinimalResolveOptions = { project: Project, resolver: Resolver, }; export type Re...
import {DocumentConventions} from "../Conventions/DocumentConventions"; import { DocumentType } from "../DocumentAbstractions"; import { throwError } from "../../Exceptions"; import { TypeUtil } from "../../Utility/TypeUtil"; export class GenerateEntityIdOnTheClient { private _conventions: DocumentConventions; ...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import React from 'react'; import { Image, Text, Title, Button, createStyles } from '@mantine/core'; const useStyles = createStyles((theme) => ({ wrapper: { display: 'flex', alignItems: 'center', borderRadius: theme.radius.md, padding: theme.spacing.md, backgroundColor: theme.colorScheme === 'dar...
import { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core'; import { Citation } from '../../../../../lib/gulp/model/model.module'; @Component({ selector: 'referencestable', templateUrl: './references-table.component.html', styleUrls: ['./references-table.component.c...
export const input = ` async function foo() { await baz.then(value => process(value)) } ` export const options = {} export const expected = ` async function foo() { const value = await baz await process(value) } `
import * as React from 'react'; import { FormLabel } from 'app/components/FormLabel'; import { Radio } from 'app/components/Radio'; import styled from 'styled-components/macro'; import { changeTheme, selectThemeKey } from 'styles/theme/slice'; import { useDispatch, useSelector } from 'react-redux'; import { saveTheme }...
export enum Profile { uar = 'uat', test = 'test', prod = 'prod', gate = 'gate' } export const Domain: Readonly<{ [key in Profile]: string }> = { [Profile.uar]: 'wws.uat.ximalaya.com', [Profile.test]: 'wws.test.ximalaya.com', [Profile.prod]: 'wws.ximalaya.com', [Profile.gate]: 'http://wws.test.ximalaya....
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { BoothComponent } from './booth.component'; import {SubmissionComponent} from '../submission/submission.component'; import {MatProgressSpinnerModule, MatRadioModule, MatSnackBarModule} from '@angular/material'; import {FormsModule, React...
import React from 'react'; import Button from '../Button'; import Menu, { Row } from '../Menu'; import Text from '../Text'; import Dropdown, { DropdownProps } from '.'; class DropdownDemo extends React.Component<DropdownProps, { open: boolean }> { state = { open: false, }; handleToggle = () => { this.se...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { MatButtonModule, MatCardModule, MatFormFieldModule, MatIconModule, MatInputModule, MatListModule, MatSelectModule } from "@angular/material"; import {FormsModule} from "@angular/forms"; import {PepListComponen...
'use strict'; import { expect } from 'chai'; import { Wallee } from '../index'; import http = require("http"); // config let config: { space_id: number, user_id: number, api_secret: string } = { space_id: 405, user_id: 512, api_secret: 'FKrO76r5VwJtBrqZawBspljbBNOxp5veKQQkOnZxucQ=' }; // Services let tran...
import { EventData, Swipeable } from 'react-swipeable'; import React, { Children, FC, useState } from 'react'; import CSS from 'csstype'; import clsx from 'clsx'; import styles from './index.module.scss'; interface Props { swipeable?: boolean; onSwipeLeft?: () => void; onSwipeRight?: () => void; style...
import { Omit } from "../../core/tsUtils"; import { AddressInterface } from "../../core/types"; import { FormError } from "../Form"; export type CheckoutFormType = "billing" | "shipping"; export interface AddressType extends Partial<AddressInterface> { email?: string; } export interface FormAddressType extends Omit...
export interface IAzureSemanticColors { background: string; statusBar: { link: string; background: { default: string; okay: string; error: string; warning: string; information: string; upsell: string; }; border: { default: string; okay: string; e...
/** * @fileoverview This file is generated by the Angular 2 template compiler. * Do not edit. * @suppress {suspiciousCode,uselessCode,missingProperties} */ /* tslint:disable */ export const styles:any[] = ['.pie-label {\n font-size: 11px; }\n'];
import { Cube } from "@/classes/Cube"; import { Model } from "@/classes/Models/Model"; export class TestModel extends Model { constructor(name: string) { super(name); this.createModel(); } createModel() { const { shapes } = this; const cube = new Cube("First Cube", { center: [0, 0, 0], ...
import { ChangeDetectionStrategy, Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; import { FavoriteModel } from '@models/favorite.model'; @Component({ selector: 'app-favorites-filter', changeDetection: ChangeDetectionStrategy.OnPush, templateUrl: './favorites-filter.component.html', styl...
type TokensPayloadUniversitiesScopes = Record<string, true>; type TokensPayloadUniversities = Record< string, { scopes: TokensPayloadUniversitiesScopes; } >; export interface TokensPayload { user: { id: string; universities: TokensPayloadUniversities; }; } export enum UserRole { ADMIN = 'ADMIN', TEACHER ...
/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { strict as assert } from "assert"; import { MockFluidDataStoreRuntime, MockContainerRuntimeFactory, MockStorage, } from "@fluidframework/test-runtime-utils"; import { ReferenceTy...
import { Component } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { IntegrationConnectionType } from 'types/Connection'; import { CentralServerService } from '../../../../services/central-server.service'; import { MessageService } from '../../../../services/message.service'; i...
// Type definitions for TinyMCE 4.5 // Project: https://github.com/tinymce/tinymce // Definitions by: Martin Duparc <https://github.com/martinduparc/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Work In Progress declare namespace TinyMCE { export interface Observable { off: (name?: str...
import { GithubPullRequest, GithubPullRequestComment } from './'; import { GithubEventType, repoParentPaths, defaultActorPaths, } from './helperTypes'; const PullRequestReviewCommentEvent: GithubEventType = { config: { actionPropPath: 'payload.action', actionTypes: ['created', 'edited', 'deleted'], }...
/** @jsx jsx */ import { jsx } from "theme-ui" import useSiteMetadata from "@lekoarts/gatsby-theme-minimal-blog/src/hooks/use-site-metadata" import Layout from "@lekoarts/gatsby-theme-minimal-blog/src/components/layout" import { Link } from "gatsby" import replaceSlashes from "@lekoarts/gatsby-theme-minimal-blog/src/ut...
export * from './tenant-config.interface'; export * from './tenant.enum';
export default { // t: current time, b: beginning value, _c: final value, d: total duration tweenBetween( timeDelta: number, startValue: number, endValue: number, duration: number, functionName: number ): any { const totalValueChange = endValue - startValue; // @ts-ignore return th...
import React, { useReducer, createContext, useRef, useContext, Dispatch, } from 'react'; type State = { id: number; text: string; done: boolean; }; const initialTodos = [ { id: 1, text: 'JIRA 이슈확인하기', done: false, }, ]; type Action = | { type: 'CREATE'; todo: State } | { type: 'TO...
export * from './authorized';
import { ActionTree, GetterTree, MutationTree } from 'vuex'; type GlobalType = { message: string; error: string; loading: boolean; }; const state: GlobalType = { message: '', error: '', loading: false, }; const mutations: MutationTree<GlobalType> = { SET_MESSAGE(state, data) { state.message = data;...
import {ISubRubric} from './rubrics.interface'; export interface ISubRubricLS { LS01: ISubRubric; LS02: ISubRubric; LS03: ISubRubric; LS04: ISubRubric; LS05: ISubRubric; LS06: ISubRubric; LS07: ISubRubric; LS08: ISubRubric; } export default { LS01: { en: { title...
import * as mongoose from 'mongoose'; import { UserRolesEnum } from "../enums/user-roles.enum"; export const UserSchema = new mongoose.Schema( { username: { type: String, required: true }, email: { type: String, required: true }, password: { type: String, required: true }, dateCreation: { t...