text
stringlengths
10
953k
import {ODataError} from '../../../../../../../../../../models/oDataErrors/'; import {createODataErrorFromDiscriminatorValue} from '../../../../../../../../../../models/oDataErrors/createODataErrorFromDiscriminatorValue'; import {Set, SetCollectionResponse} from '../../../../../../../../../../models/termStore/'; import...
import { TestBed, inject } from '@angular/core/testing'; import { PonentMokuaiRoutesService } from './ponent-mokuai-routes.service'; describe('PonentMokuaiRoutesService', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [PonentMokuaiRoutesService] }); }); it('should be creat...
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ import { Event, Node as DomNode, Range } from '@ephox/dom-globals'; i...
import React from 'react'; import { ModalTab, RepetitionDayString } from '@src/typings'; import { getDayDistance, getNextDate, getTimeDistance, getTimeString, isPast } from '@src/utils'; // --------------------------------------------------------------------------------- type TProps = { readonly tab: ModalTab; rea...
import { mutations } from './mutations' import { state } from './state' export const config = { namespaced: true, mutations, state }
import * as types from 'notion-types'; export interface TableOfContentsEntry { id: types.ID; type: types.BlockType; text: string; indentLevel: number; } /** * Gets the metadata for a table of contents block by parsing the page's * H1, H2, and H3 elements. */ export declare const getPageTableOfContent...
export const IEmail = (props: React.SVGProps<SVGSVGElement>) => ( <svg width={24} height={24} viewBox='0 0 24 24' fill='none' {...props}> <path d='M19 4H5a3 3 0 00-3 3v10a3 3 0 003 3h14a3 3 0 003-3V7a3 3 0 00-3-3zm0 2l-6.5 4.47a1 1 0 01-1 0L5 6h14z' fill='var(--colors-blue-500)' /> </svg> );
import { NO_ERRORS_SCHEMA } from '@angular/core'; import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { TranslateModule } from '@ngx-translate/core'; import { NgxsModule } from '@ngxs/store'; import { XStore } from '../../../../core/state/state.mock'; import { SettingsLayerPositionC...
import * as React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import TutorialOverlay from 'react-native-tutorial-overlay'; export default function App() { return ( <View style={styles.container}> <View style={styles.taskContainer}> <Text style={styles.taskTitle}>#01 - Task<...
import { ApiGatewayV2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ApiGatewayV2Client"; import { GetStageRequest, GetStageResponse } from "../models/models_0"; import { deserializeAws_restJson1GetStageCommand, serializeAws_restJson1GetStageCommand, } from "../protocols/Aws_restJson1"; impor...
// Ids is a JavaScript project, but we define TypeScript declarations so we can // confirm our code is type safe, and to support TypeScript users. import { IdsElement } from '../ids-base/ids-element'; export default class IdsSeparator extends IdsElement {}
import { TestBed } from '@angular/core/testing'; import { TextDailogService } from './text-dialog.service'; describe('TextDailogService', () => { let service: TextDailogService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(TextDailogService); }); it('should be crea...
import { Fields } from '../../../../types'; import { AddressElement } from '../../../../models/AddressElement'; import { FiasData } from '../../../../models/FiasData'; export interface IsEqualToTestCase { label: string; element_1: AddressElement; element_2: AddressElement | undefined; isEqual: boolean; } cons...
/* eslint-disable @typescript-eslint/no-var-requires */ /* eslint-disable @typescript-eslint/no-explicit-any */ import React, { useRef, useEffect, useState } from 'react'; import * as THREE from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; import styles from './index.module.scs...
import { ChildProcessResult, spawnAndWatch, SuccessIsReturn0ErrorFinder } from "@atomist/automation-client"; import { AddressChannels, AppInfo, GitProject, InterpretLog, LogInterpretation, ProgressLog, ProjectOperationCredentials, RemoteRepoRef, SoftwareDeliveryMachine, SoftwareDeliveryMachineConfig...
export enum TownTier { Village, Town, City, }
// Fetching Dapps list export const fetchDappsRequest = () => ({ type: 'FETCH_DAPPS_REQUEST', }); export const fetchDappsFailure = (error) => ({ type: 'FETCH_DAPPS_FAILURE', error, }); export const fetchDappsSuccess = (dapps) => ({ type: 'FETCH_DAPPS_SUCCESS', dapps, }); // export const viewFuncResult = (d...
import { FC } from 'react'; import styled from 'styled-components'; import { useTranslation, Trans } from 'react-i18next'; import Button from 'components/Button'; import { CRYPTO_CURRENCY_MAP, SYNTHS_MAP } from 'constants/currency'; import { ExternalLink, NoTextTransform } from 'styles/common'; import media from 'sty...
import { FormControl, FormHelperText, Input, InputLabel, Typography, } from "@material-ui/core"; import React, { useState } from "react"; import { connect } from "react-redux"; import { RayletActorInfo, RayletInfoResponse } from "../../../api"; import { StoreState } from "../../../store"; import Actors from "...
import * as React from "react"; import { PinBindingType, PinBindingSpecialAction, PinBinding } from "farmbot/dist/resources/api_resources"; import { PinBindingListItems } from "./interfaces"; import { stockPinBindings } from "./list_and_label_support"; import { initSave } from "../../api/crud"; import { t } from ...
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../../utilities"; /** * Slot Config names azure resource. */ export class WebAppSlotConfigu...
/********************************** Header **********************************\ This code is auto-generated by XrmToolbox plugin 'Application Insights Manager' Project Source: https://github.com/Danz-maveRICK/ApplicationInsightsManager D365AppInsights.JS provided by Jason Lattimer's GitHub project Project Source: http...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { HomePageComponent } from './home-page.component' export const homeRoutes: Routes = [ { path: 'home', component: HomePageComponent } ]; @NgModule({ imports: [RouterModule.forChild(homeRoutes)], exports: [R...
import * as exec from '@actions/exec'; import { KubevalResultStatus, KubevalRunner } from './kubeval'; describe('Kubeval Runner', () => { beforeEach(() => { jest.clearAllMocks(); }); it('It calls Kubeval with correct arguments', async () => { const spy = jest.spyOn(exec, 'exec').mockImplementation(() =...
import { shallowFactory } from '@/helpers/testFactoryHelpers'; import { VueClass, Wrapper } from '@vue/test-utils'; import AdminLoansView from '../AdminLoansView.vue'; import Vue from 'vue'; describe('AdminLoansView.vue', () => { it('CardFormComponent exists in view', () => { const wrapper= shallowFactory(Adm...
/* * 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.0 * (the "License"); you may ...
/** * @fileOverview force atlas 2 * @author shiwu.wyy@antfin.com */ import { PointTuple, OutNode, Edge, ForceAtlas2LayoutOptions } from "../types"; import { Base } from "../base"; export declare class ForceAtlas2Layout extends Base { /** 布局中心 */ center: PointTuple; /** 宽度 */ width: number; /** 高度...
import { mapMentionsToSymptoms, filterDuplicateSymptoms, filterDuplicateEvidence, mapQuestionItemsToQuestionOptions, determineProgressBarWidth, replaceEvidenceRecordsById, determineCountryChoiceId, mapSymptomsToEvidence, } from "./utils"; import { determineEmojiByChoiceId, range, mapProbabilityTo...
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { HomeComponent } from './ui/home/home.component'; import { NotFoundComponent } from './ui/not-found/not-found.component'; const appRouters: Routes = [ {path: '', component: HomeComponent, pathMatch: 'full'}, {...
/// <reference path="../../../globals.d.ts"/> /// <reference path="./dom.d.ts"/> /// <reference path="../html/safestyle.d.ts"/> /// <reference path="../html/safehtml.d.ts"/> declare module 'goog:goog.dom.iframe' { export = goog.dom.iframe; } declare namespace goog.dom.iframe { /** * Safe source for a bla...
import React from 'react' import { createStackNavigator, StackHeaderProps } from '@react-navigation/stack' import SearchScreen from '../../screens/Search/SearchScreen' import Header from '../../components/Header/Header.component' import UserResultProfileScreen from '../../screens/Search/UserResultProfileScreen/UserResu...
import { Controller, Get } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get('/home') getHello(): Promise <string> { return this.appService.getHello(); } }
export * from "@nativescript/core/image-source/image-source";
import {Person} from "../../scheduling/people"; import {csd} from "../../scheduling/common/date-utils"; import {Plan} from "../../scheduling/plan"; import {Team} from "../../scheduling/teams"; import {PersonManager, SchedulerObjectStore} from "../../scheduling/common/scheduler-store"; import {AvailabilityEveryNOfM} fro...
/* MIT License Copyright (c) 2022 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 IEvent from './event_interface'; export default interface ISubscriptionPayload { name: string; event: IEvent; }
export declare class CreateUserDto { name: string; age: number; gender: string; }
import React, {ChangeEvent, useState} from "react"; import "./NewPost.scss"; import {makeRequestToTheServer} from "../../utils"; import { useHistory } from "react-router-dom"; function NewPost() { const [currentState, setState] = useState( { title: '', keywords: '', imag...
import React, { ReactNode } from "react"; import { LinearGradient } from "expo-linear-gradient"; import { BorderlessButton } from "react-native-gesture-handler"; import { useNavigation } from "@react-navigation/native"; import { Feather } from "@expo/vector-icons"; import { Text, View } from "react-native"; import { t...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: MIT-0 import * as ec2 from '@aws-cdk/aws-ec2'; import * as redshift from '@aws-cdk/aws-redshift'; import * as cdk from '@aws-cdk/core'; import { SfnRedshiftTasker } from './index'; import { CancellingStatementMachine } f...
import { PostHTML } from "posthtml"; import render from "posthtml-render"; import parse from "posthtml-parser"; import * as rollup from "rollup"; import nodeResolve from "@rollup/plugin-node-resolve"; import rollupSvelte from "rollup-plugin-svelte"; import virtual from "@rollup/plugin-virtual"; import { promisify } fro...
import { Command as $Command } from "@aws-sdk/smithy-client"; import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types"; import { CreateEmailTemplateRequest, CreateEmailTemplateResponse } from "../models/models_0"; import { ServiceInputType...
/** * This file includes polyfills needed by Angular and is loaded before the app. * You can add your own extra polyfills to this file. * * This file is divided into 2 sections: * 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers. * 2. Application imports. Files imported...
import { Behavior } from '../../common/interfaces/Behavior' import { addComponent, getMutableComponent } from '../../ecs/functions/EntityFunctions' import { GamesSchema } from '../../game/templates/GamesSchema' import { Game } from '../../game/components/Game' import { GameObject } from '../../game/components/GameObjec...
import { Field, InputType } from "type-graphql"; @InputType() export class CreateCatInput { @Field() readonly name: string; @Field() readonly type: string; @Field() readonly pokedex: number; }
import { Component } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import * as _ from 'underscore'; import { PagerService, GlobalServices } from './../../services/index'; import { FormControl, FormGroup, Validators } from '@angular/forms'; import { apiURL } from '../../_nav'; @Component({ ...
import { SmartArray } from "../../Misc/smartArray"; import { Nullable } from "../../types"; import { Scene } from "../../scene"; import { Matrix, Vector3, Vector2 } from "../../Maths/math.vector"; import { Color4 } from "../../Maths/math.color"; import { VertexBuffer } from "../../Buffers/buffer"; import { SubMesh } fr...
import React from 'react'; import { Container, Item, Title, } from './styles'; interface Props { title: string; elements: React.ReactNode[]; } const List: React.FC<Props> = ({ title, elements }) => { return ( <Container> <Item> <Title>{title}</Title> </Item> {elements...
/// <reference path="fourslash.ts" /> ////function bar(indexer: { getLength(): number; getTypeAtIndex(index: number): string; }): string { //// return indexer.getTypeAtIndex(indexer.getLength() - 1); ////} ////function foo(a: string[]) { //// return bar({ //// getLength(): number { //// return ...
/** * Copyright (c) ACT, 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. * * @prettier */ import * as React from 'react'; import { action } from '@storybook/addon-actions'; import { Story } from '@storybook/re...
import React from 'react'; import { Card, CardHeader, CardBody, Grid, GridItem, PageSection, Tabs, Tab, TabContent, TabContentBody, TabTitleText, Title, Text, TextContent, TitleSizes } from '@patternfly/react-core'; import DashboardWrapper from '../DashboardWrapper'; export const NestedUn...
import { ContentDownloadRequest, DownloadRequest } from 'sunbird-sdk'; import { OnInit } from '@angular/core'; import { Observable } from 'rxjs'; export interface ActiveDownloadsInterface extends OnInit { activeDownloadRequests$: Observable<ContentDownloadRequest[]>; cancelAllDownloads(): void; cancelDownload(d...
import { BaseEntity, Entity, PrimaryGeneratedColumn, Column, JoinColumn, OneToOne } from "typeorm"; import { Users } from "./Users"; import NowPlayingMode from "../enums/NowPlayingMode"; @Entity() export class Modes extends BaseEntity { @PrimaryGeneratedColumn() id!: number; @OneToOne(() => Users) @J...
import { Component, OnInit, AfterViewInit, Input } from '@angular/core'; import { Store } from '@ngrx/store'; import { Observable, combineLatestWith } from 'rxjs'; import { CalendarDate } from '../../calendar-modal/calendar-date/calendar-date'; import { CalendarHours } from '../../calendar-modal/calendar-hours/calendar...
import {removeCarriageReturn} from "./removeCarriageReturn"; import {test} from "rome"; test( "removeCarriageReturn", (t) => { t.is(removeCarriageReturn("test\rrome"), "testrome"); t.is(removeCarriageReturn("test\nrome"), "test\nrome"); t.is(removeCarriageReturn("test\r\nrome"), "test\nrome"); }, );
import Head from 'next/head'; import styles from '../styles/Home.module.scss'; export default function Home() { return <div></div>; }
import { Body, Controller, Get, Post } from '@nestjs/common'; import { ApiOperation } from '@nestjs/swagger'; import { CreateUserDTO } from '../dtos/user.dto'; import { User } from '../schemas/user.schema'; import { UserService } from '../services/user.service'; @Controller('users') export class UserController { co...
import { ValueProvider } from '@angular/core'; export declare const PieSeriesService: ValueProvider; export declare const FunnelSeriesService: ValueProvider; export declare const PyramidSeriesService: ValueProvider; export declare const AccumulationTooltipService: ValueProvider; export declare const AccumulationLegendS...
declare let __API__: string;
/*! * Jodit Editor (https://xdsoft.net/jodit/) * Released under MIT see LICENSE.txt in the project root for license information. * Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net */ /** * @module selection */ import type { IJodit } from 'jodit/types'; import { Dom } from 'jodi...
import { basename } from 'path' // prog is the name of the program // export const prog :string = process.argv[1] export const prog = process.env["_"] || basename(process.argv[1]) // die prints message to stderr and exits with status 1 export function die(message :any, ...msg :any[]) { if (message instanceof Erro...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { IOption } from "../interfaces/IOption"; export class Author implements IOption { public id: number; public name: string; constructor(id: number, name: string){ this.id = id; this.name = name; } [key: string]: string | number; }
/** * types.ts 4.2.1 * Copyright (c) 2021 Alain Dumesny - see GridStack root license */ import { GridStack } from './gridstack'; /** different layout options when changing # of columns, * including a custom function that takes new/old column count, and array of new/old positions * Note: new list may be partiall...
import ButtonField from "@/components/generic/button-field"; import InputField from "@/components/generic/input-field"; import SectionLayout from "@/layouts/section-layout"; import LoadingProvider, { Loading } from "@/components/loader"; import UserMutation from "@/context/user-mutation"; import { RegisterUserInput, re...
/** * The `dns.promises` API provides an alternative set of asynchronous DNS methods * that return `Promise` objects rather than using callbacks. The API is accessible * via `require('dns').promises` or `require('dns/promises')`. * @since v10.6.0 */ declare module 'dns/promises' { import { LookupAddres...
export class ReceivePaper { date: string; date_dabirkhane: string; organization: string; subject: string; image: any; }
/* eslint-disable no-console */ import { register } from "register-service-worker"; if (process.env.NODE_ENV === "production") { register(`${process.env.BASE_URL}service-worker.js`, { updated() { caches.keys().then(names => names.forEach(name => caches.delete(name))); } }); }
/* TSBindingsGenerator Generated code -- this code is regenerated on each build */ namespace SkiaSharp { export class sk_image_make_with_filter_0_Params { /* Pack=4 */ image : number; filter : number; subset : SkiaSharp.SKRectI; clipbounds : SkiaSharp.SKRectI; public static unmarshal(pData:number, memoryC...
import { Component } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'router-modul'; }
import { RDSClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSClient"; import { AccountAttributesMessage, DescribeAccountAttributesMessage } from "../models/index"; import { deserializeAws_queryDescribeAccountAttributesCommand, serializeAws_queryDescribeAccountAttributesCommand, } from "../p...
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, HandlerExecutionContext, HttpHandlerOptions...
import {DomSanitizer} from '@angular/platform-browser'; import { EventEmitter } from '@angular/core'; import { master } from './master'; import { Avatar } from './avatar'; export class Server { readonly address: string; readonly hostname: string; readonly sortname: string; readonly strippedname: stri...
export class ExistsUserError extends Error { constructor(message: string) { super(message); } }
class BeginScene extends egret.Sprite{ public constructor() { super(); this.init(); } private sky:egret.Bitmap; private startBtn:egret.Bitmap; private helpBtn:egret.Bitmap; private title:egret.Bitmap; private rank:egret.Bitmap; private init(){ var screenW = Data.getStageWidth(); var screenH = Data.g...
import { Meta, Story } from '@storybook/react'; import React from 'react'; import { YoutubeCounterButton, YoutubeCounterButtonProps, } from '../src/components/youtube/YoutubeCounterButton'; const meta: Meta = { title: 'YoutubeCounterButton', component: YoutubeCounterButton, argTypes: { children: { ...
import * as React from 'react'; import { IValidationMessageProps, ValidationMessage } from 'core/validation'; import { IFieldLayoutProps } from '../interface'; import './StandardFieldLayout.css'; export class StandardFieldLayout extends React.Component<IFieldLayoutProps> { public render() { const { label, hel...
/* tslint:disable:no-unused-variable */ import { TestBed, async } from '@angular/core/testing'; import { RegisterComponent } from './register.component'; describe('Component: Register', () => { it('should create an instance', () => { let component = new RegisterComponent(); expect(component).toBeTruthy(); ...
import { loadCultureFiles } from '../common/culture-loader'; import { Chart, Category, Legend, Tooltip, ILoadedEventArgs, ChartTheme, StackingLineSeries } from '@syncfusion/ej2-charts'; import { Browser } from '@syncfusion/ej2-base'; Chart.Inject(StackingLineSeries, Category, Legend, Tooltip); /** * Sample for Stacke...
import { createSelector } from '@reduxjs/toolkit'; import { RootState } from 'types'; import { initialState } from '.'; const selectSlice = (state: RootState) => state.modelRegistryPage || initialState; export const selectModelPageState = createSelector( [selectSlice], state => state, );
import { combineReducers } from "redux"; import changeState from "./changeStateReducer"; import testReducer from "./testReducer" import storeUserDataReducer from "./storeUserDataReducer" const allReducer = combineReducers({ change_State: changeState, test: testReducer, userDetail:storeUserDataReducer }); export...
// Used to avoid using Jest's fake timers and Date.now mocks // See https://github.com/TheBrainFamily/wait-for-expect/issues/4 and // https://github.com/TheBrainFamily/wait-for-expect/issues/12 for more info const { setTimeout } = typeof window !== "undefined" ? window : global; const defaults = { timeout: 4500, i...
import { FC, useEffect, useState } from 'react'; import { CardImages } from '../fakeData'; import './cardItems.scss'; interface CardItemsProps { sortLabelName: string; } const CardItems: FC<CardItemsProps> = ({ sortLabelName }) => { const [isSorted, setIsSorted] = useState(false); const[count,setCount]=useState...
import { Post } from "@prisma/client"; import { MessageEmbed, WebhookClient } from "discord.js"; import env from "../common/env"; export default async (post: Post) => { if (env.DISCORD_WEBHOOK_URL.length > 0) { const splitUrl = env.DISCORD_WEBHOOK_URL.split('/') const webhook = new WebhookClient(s...
import * as React from 'react'; import { Switch, Route } from 'react-router-dom'; import { DarkModeButton } from './ui/DarkModeButton'; import { GitHubIconLink } from './ui/GitHubIconLink'; import { globalCss, styled } from './stitches.config'; import { Home } from './components/Home'; import { ExampleComponent } from ...
import React from 'react'; import { DefaultButtonProps } from 'modules/common/buttons'; import { AlertMessage, AlertMessageProps, Breakdown, ButtonsRow, CallToAction, CheckboxCTA, CheckboxCTAProps, Content, ContentProps, DepositInfo, DepositInfoProps, Description, DescriptionProps, MarketRe...
export * from './FieldGroup';
export const mockData = { config: { mode: 'edit', maxDepth: 2, objectType: 'Collection', primaryCategory: 'Course', isRoot: true, iconClass: 'fa fa-book', children: {}, hierarchy: { level1: { name: 'Module', type: 'Unit', mimeType: 'applic...
import * as admin from "firebase-admin"; const auth = admin.auth(); import callableAction from "rowy-actions"; export const SuspendUser = callableAction(async ({row, callableData}) =>{ const {action} = callableData; const {firstName, email} = row; // switch statement can be used to perform different event based ...
import { Component, OnInit } from '@angular/core'; import {MatTableDataSource} from '@angular/material'; export interface PeriodicElement { type: string; position: number; action:any; } const ELEMENT_DATA: PeriodicElement[] = [ {position: 1, type: 'Office space', action:'edit delete'}, {position: 2, type: '...
import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs/Rx'; @Injectable() export class DoEchartsService { private _assetsPath = 'assets/map/'; private _themePath = 'assets/theme/'; constructor(private httpClient: HttpClient) { } ...
import { Router } from 'express'; import * as trelloController from '../controllers/trelloController'; const router: Router = Router(); router.post('/', trelloController.registerTrelloService); router.get('/', trelloController.fetchTrelloService); router.delete('/', trelloController.resetTrelloService); router.get('...
import * as vscode from 'vscode' import * as fs from 'fs-extra' import * as path from 'path' import * as stripJsonComments from 'strip-json-comments' import * as envpair from '../components/envpair' import {Extension} from '../main' import {tokenizer} from './tokenizer' export class HoverProvider implements vscode.Hov...
import { Router } from "oak"; const api = new Router(); api.post("/exists", async (ctx) => {}); api.post("/sign-in", async (ctx) => {}); api.post("/sign-up", async (ctx) => {}); api.post("/refresh", async (ctx) => {}); api.delete("/sign-out", async (ctx) => {}); export default api;
import { Injectable, ConflictException } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Teacher } from '../../entities'; import { CreateTeacherDTO } from './dto'; import { TeachersRepository } from './teachers.repository'; @Injectable() export class TeachersService { constructor...
import { tagNames } from "@webmc/nbt"; import { applyEdit, SearchQuery } from "../../src/common/Operations"; import { NbtFile, NbtEdit, EditorMessage, ViewMessage } from "../../src/common/types" import { MapEditor } from './MapEditor'; import { RegionEditor } from "./RegionEditor"; import { SnbtEditor } from "./SnbtEdi...
import * as React from 'react' import { inject } from 'src/utils/storeInject' import TaskStore from 'src/store/features/Task' import Task from 'src/views/components/Task' import TasksStore from 'src/store/features/Tasks' import styles from './styles.scss' import TasksEmptyState from '../TasksEmptyState' type TasksProp...
/* A new Migration is instantiated for each migration file. It is responsible for storing the name of the file and knowing how to execute the up and down migrations defined in the file. */ import fs from 'fs' import mkdirp from 'mkdirp' import path from 'path' import { promisify } from 'util' import { DBConnecti...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { TableSearchComponent } from './table-search.component'; describe('TableSearchComponent', () => { let component: TableSearchComponent; let fixture: ComponentFixture<TableSearchComponent>; beforeEach(async(() => { TestBed.conf...
import { WithStyle } from '@medly-components/utils'; import type { FC } from 'react'; import { memo } from 'react'; import LocalActivityIconSvg from '../../assets/Maps/local_activity_24px_rounded.svg'; import SvgIcon, { SvgIconProps } from '../../SvgIcon'; const Component: FC<SvgIconProps> = memo(props => { const ...