text
stringlengths
10
953k
import { Dirent, promises } from 'fs' import { join } from 'path' import { promisify } from 'util' const sleep = promisify(setTimeout) const unlinkFile = async (p: string, t = 1): Promise<void> => { try { await promises.unlink(p) } catch (e) { if ( (e.code === 'EBUSY' || e.code === 'ENOTEMPT...
import { CollectionCache, CollectionKey } from "../../../common"; export namespace CampaignBonusValueIdsUnitCaste { export const KEY = new CollectionKey("campaign_bonus_value_ids_unit_caste"); export class Entry { private readonly collectionCache: CollectionCache; readonly key: string; readonly note...
import { Component } from "@stencil/core"; @Component({ tag: "app-home", styleUrl: "app-home.css", shadow: true }) export class AppHome { testIconInfo() { let aeiconComponent = document.querySelector("ae-icon-info"); aeiconComponent.show("Show some ae-icon info!", "danger", 2000); } render() { ...
export class BookSearchResult { libraryId: string; libraryName: string; libraryPicture: string; title: string; author: string; isbn: string; publishYear: number; coverPicture: string; }
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ja" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Antimatter</source> <translation>ブラックコインについて</translation> </message> <message> <locati...
import React, { useCallback, useState } from 'react'; import { NextPage } from 'next'; import Link from 'next/link'; import { Row, Col, Card, List, Alert } from 'antd'; import { useSetting } from '@/hooks/useSetting'; import { AdminLayout } from '@/layout/AdminLayout'; import { ArticleProvider } from '@/providers/artic...
"use strict"; import * as Hapi from "@hapi/hapi"; import { getDatabase, getClient } from "../helpers/db.helper"; import { getUserAuth, insertUserOne } from "../service/auth.service"; import { Models } from "../helpers/models.helper"; import UserAuth = Models.UserAuth; import User = Models.User; import Meta = Models.Me...
import { Generatable } from './Generatable'; export class ValueExpression extends Generatable { v: String; constructor(value: String) { super(); this.v = value; this.pascalExcludes.push('v'); } }
import React from 'react' import './styles/fonts' import GlobalStyles from './styles/global' import Home from './pages/Home' import { QuizProvider } from './hooks/useQuiz' const App: React.FC = () => ( <QuizProvider> <Home /> <GlobalStyles /> </QuizProvider> ) export default App
import { View, Button, ITouchEvent } from '@tarojs/components' import { useCallback } from 'react' import * as utils from '../wxs/utils' import { ActionSheetProps, ActionSheetItem } from '../../../types/action-sheet' import VanLoading from '../loading/index' import VanPopup from '../popup/index' import VanIcon from '.....
import { PipeTransform, Injectable, ArgumentMetadata, BadRequestException, } from '@nestjs/common'; import { validate, ValidationError } from 'class-validator'; import { plainToClass } from 'class-transformer'; import { ListErrors } from '../types'; @Injectable() export class ValidationPipe implements PipeTra...
import { Schema } from "mongoose"; export const OrdenSchema = new Schema({ idConcurso:{ type:String, required:true }, categoria:{ type:String, required:true }, ordenProyectos:{ type:Array, required:true }, tituloConcurso:{ type:String,...
import { Graph } from "../graph"; import _ from "../utils"; /** * Finds all connected components in a graph and returns an array of these components. * Each component is itself an array that contains the ids of nodes in the component. * Complexity: O(|V|). * * @argument graph - graph to find components in. * @re...
import * as $protobuf from 'protobufjs'; /** Namespace tensorflow. */ export namespace tensorflow { /** Properties of an Any. */ interface IAny { /** Any typeUrl */ typeUrl?: (string|null); /** Any value */ value?: (Uint8Array|null); } /** Represents an Any. */ class Any implements IAny { ...
/* * Copyright (c) 2022 by MILOSZ GILGA <https://miloszgilga.pl> * * File name: initialState.ts * Last modified: 23/02/2022, 16:19 * Project name: digititles-imagine * * Licensed under the MIT license; you may not use this file except in compliance with the License. * * Permission is hereby granted, free of ch...
// Copyright 2019 The Oppia Authors. 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 ap...
import { LngLat } from 'maplibre-gl'; export type ImagePosition = [LngLat, LngLat, LngLat, LngLat]; export enum Cursor { Default = '', Move = 'move', Grabbing = 'grabbing', NESWResize = 'nesw-resize', NWSEResize = 'nwse-resize', } export enum EditMode { None = 'none', Move = 'move', Transform = 'tran...
import React from 'react'; // tslint:disable const AddTagIcon = () => { return <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"> <rect x=".5" y=".5" width="31" height="31" rx="3.5" stroke="#26A6D4" strokeDasharray="8 4"/> <path d="M21.14 14.71H17.3v-3.85a.86.86 0...
import { Component, ViewChild } from '@angular/core'; import filter from 'lodash-es/filter'; import * as $ from "jquery"; import { VulnsPage } from '../vulns/vulns.page'; import { NavController, LoadingController } from 'ionic-angular'; @Component({ selector: 'ib-page-home', templateUrl: 'home.page.html', ...
/* eslint-disable operator-linebreak */ import { Response } from 'express'; import * as WebSocket from 'ws'; import * as url from 'url'; import sessionParser from './session-parser'; import PlayerConnection from './connection'; export const connections: Map<string, any> = new Map(); export default createWSS; functio...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distr...
// Type definitions for RequireJS 2.1.20 // Project: http://requirejs.org/ // Definitions by: Josh Baldwin <https://github.com/jbaldwin/> // Definitions: https://github.com/borisyankov/DefinitelyTyped /* require-2.1.8.d.ts may be freely distributed under the MIT license. Copyright (c) 2013 Josh Baldwin https://gith...
import { Component } from '@angular/core'; @Component({ selector: 'keyup', template: ` <input #box (keyup.enter)="update(box.value)" (blur)="update(box.value)"> <p>{{values}}</p> ` }) export class KeyupComponent { values = ''; update(value: string) { this.values = value; } }
import { isClient } from '../../common/functions/isClient' import { Action } from '../../networking/interfaces/Action' import { defineQuery, getComponent, hasComponent, MappedComponent } from '../functions/ComponentFunctions' import { createEntity } from '../functions/EntityFunctions' import { SystemFactoryType, System...
// Copyright 2018 Google Inc. 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 applicable...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fa" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About TalonPower</source> <translation type="unfinished"/> </message> <message> <location lin...
/*********************************************************** * Copyright (C) 2022 * Worktez * * This program is free software; you can redistribute it and/or * modify it under the terms of the MIT License * * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without ...
/// <reference types="node" /> import * as fs from "fs"; import iferr = require("iferr"); const { tiferr, throwerr, printerr } = iferr; const { readFile } = fs; const errcb = (err: Error | undefined) => { throw err; }; readFile("test.txt", iferr(errcb, result => { Buffer.from("test", "utf8") === result; })); ...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; import { NodeAddPage } from './node-add.page'; describe('NodeAddPage', () => { let component: NodeAddPage; let fixture: ComponentFixture<NodeAddPage>; beforeEach(async(() => { TestBed.con...
import { Component, OnInit } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { PaginationInstance } from 'ngx-pagination'; import { AuthService } from '../../services/auth.service'; import { ApirequestsService } from '../../services/apirequests.service'; @Component({ selector: 'app-cat...
/** * 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 { TransformExitResult, Path, REDUCE_REMOVE, ImportBinding, FunctionBinding, TypeBinding, } from '@romejs/js-com...
import * as React from "react"; import InputCtrl, { InputCtrlProps } from "./InputCtrl"; import CheckBox from "./CheckBox"; import SelectOption from "./SelectOption"; import classnames from "classnames"; interface CheckBoxGroupProps extends InputCtrlProps<string[]> { options: SelectOption[]; } class CheckBoxGroup...
import { merge } from 'rxjs'; import { delay, distinctUntilChanged, filter, map, take } from 'rxjs/operators'; import { defaultValue, PeerJS, PeerJsUtil, R, rx, slug, StreamUtil, StringUtil, t, time, WebRuntime, DEFAULT, } from './common'; import { PeerEvents } from './event'; import { MemoryRe...
import CharacterBaseInformations from "@/protocol/network/types/CharacterBaseInformations"; import EntityLook from "@/protocol/network/types/EntityLook"; import PartyCompanionMemberInformations from "@/protocol/network/types/PartyCompanionMemberInformations"; import PlayerStatus from "@/protocol/network/types/PlayerSta...
/* * Copyright 2019 GridGain Systems, Inc. and Contributors. * * Licensed under the GridGain Community Edition License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.gridgain.com/products/software/community-edition...
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { LandingOpportunityComponent } from './pages/landing-opportunity/landing-opportunity.component'; import { AllOpportunitiesComponent } from './pages/landing-opportunity/tabs/all-opportunities/all-opportunities.compo...
// import Cat from '../models/cat'; // import BaseCtrl from './base'; // export default class CatCtrl extends BaseCtrl { // model = Cat; // } import Pool from "../models/pool"; import BaseCtrl from "./base"; import * as bcrypt from "bcryptjs"; export default class poolCtrl extends BaseCtrl { model = Pool; newP...
import React, { FC } from "react"; import { View, ImageBackground, StyleSheet, Image, Text } from "react-native"; import { Colors } from "../config/colors"; import AppButton from "../components/AppButton"; interface WelcomeScreenProps { navigation: { navigate: (screen: string) => FC; }; } const WelcomeScreen...
import { getCurrentInstance } from 'vue'; import type { Icon, Settings } from 'types'; /** * Get the library settings. */ export function getLibrarySettings(): Settings | undefined { return getCurrentInstance()?.appContext.config.globalProperties.Vueish; } /** * Get the specified icon from the settings. * * ...
import {Individual} from './individual'; import { GroupedIndividuals } from 'individuals-map'; export class TLBO { names: string[] = ['Baldr','Signy','Gunnarr','Aida','Merv','Hikmet','Atifa','Ruzha','Lazar','Aurora','Demyan','Lim','Chelo','Subhash','Gaye','Gwenyth','Muhamad','Ranj','Dinesh','Marit','Deepak','Kjeld...
import { Component, Logger } from "@oasis-engine/core"; import { Oasis } from "./Oasis"; import { Parser } from "./Parser"; import { pluginHook } from "./plugins/PluginManager"; import { scriptAbility } from "./resources"; import { ComponentConfig, Props } from "./types"; import { switchElementsIndex } from "./utils"; ...
import * as roomService from '@/pages/rooms/services/roomsService'; export default { namespace: 'rooms', state: { list: [], total: null, page: null, }, reducers: { save(state, { payload: { data: list, total, page } }) { return { ...state, list, total, page}; }, }, effects: ...
export { AggregateUserArgs } from "./AggregateUserArgs"; export { CreateUserArgs } from "./CreateUserArgs"; export { DeleteManyUserArgs } from "./DeleteManyUserArgs"; export { DeleteUserArgs } from "./DeleteUserArgs"; export { FindFirstUserArgs } from "./FindFirstUserArgs"; export { FindManyUserArgs } from "./FindManyU...
import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; @Component({ selector: 'app-not-found', templateUrl: './not-found.component.html', styleUrls: ['./not-found.component.scss'] }) export class NotFoundComponent implements OnInit { constructor() { } ngOnInit(): void ...
// svg/wifi-minus.svg import { createSvgIcon } from './createSvgIcon'; export const SvgWifiMinus = createSvgIcon( `<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://...
import * as messages from '@cucumber/messages'; import { CiDict, Env } from './types'; export default function createMeta(toolName: string, toolVersion: string, envDict: Env, ciDict?: CiDict): messages.Meta; export declare function detectCI(ciDict: CiDict, envDict: Env): messages.Ci | undefined; export declare function...
import { Schema } from "mongoose"; export const UsuarioSchema = new Schema({ email: String, password: String, personal: {type: Schema.Types.ObjectId}, experiencia: {type: Schema.Types.ObjectId}, educacion: {type: Schema.Types.ObjectId}, logro: {type: Schema.Types.ObjectId}, tecnologia: {typ...
import commands from '../../commands'; import GlobalOptions from '../../../../GlobalOptions'; import { CommandOption, CommandValidate } from '../../../../Command'; import GraphCommand from '../../../base/GraphCommand'; import Utils from '../../../../Utils'; import request from '../../../../request'; import { Channel ...
import type { IMotion } from "../../Interfaces/Motion/IMotion"; import type { IOptionLoader } from "../../Interfaces/IOptionLoader"; import type { RecursivePartial } from "../../../Types"; import { MotionReduce } from "./MotionReduce"; /** * [[include:Options/Motion.md]] * @category Options */ export class Motion i...
export interface SpeechRecognitionTranscription { text: string; finished: boolean; // confidence: number; // TODO some day } export interface SpeechRecognitionOptions { /** * Example: "nl-NL". * Default: the system locale. */ locale?: string; /** * IOS only * Recognize ...
import {Component, ElementRef, EventEmitter, HostListener, Output, ViewChild} from '@angular/core'; import {NGXLogger} from 'ngx-logger'; @Component({ selector: 'app-dialog', templateUrl: './dialog.component.html', styleUrls: ['./dialog.component.scss'], }) export class DialogComponent { opened = false; @Ou...
import { Component } from '@angular/core'; @Component({ moduleId: module.id, selector: 'retail-customer', templateUrl: 'retail-customer.component.html', styleUrls: ['retail-customer.component.scss'] }) export class RetailCustomerComponent { }
<TS language="he" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>יצירת כתובת חדשה</translation> </message> <message> <source>&amp;New</source> <translation>&amp;חדשה</translation> </message> <mess...
/* University of Illinois/NCSA Open Source License Copyright (c) 2018 Terrain Data, Inc. and the authors. All rights reserved. Developed by: Terrain Data, Inc. and the individuals who committed the code in this file. https://github.com/terraindata/terrain Permission is ...
import React, { useState } from 'react'; import { FormikProps } from 'formik'; import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; import updateFormikForm from 'utils/updateFormikForm'; import FormField from 'components/FormField'; import LabeledSelect from 'components/LabeledSelect'; import {...
import { Color } from 'color/Color'; import { HSL } from 'color/HSL'; import { RGB } from 'color/RGB'; export class Filter implements Color { filterName: string; baseColor!: HSL; constructor(filterName: string) { this.filterName = filterName; } toString(): string { return "url('#" + this.filterName...
import { Container } from 'aurelia-dependency-injection'; import { autoinject, Aurelia } from 'aurelia-framework'; import { Storage } from './storage'; import { GeopositionTools } from './geopositionTools'; import { Filter } from '../models/todoist'; export interface IProjectLocation { name: string; projects: ...
import * as requestPromise from "request-promise-native"; import { EndpointError, NetworkError, ResponseTagError } from "./errors"; import { IDeviceStatusResponse, IGetIdentitiesResponse, IGetStateResponse, IModuleBase, IModuleRoomClimate, IModuleWeather, ModuleClass, ModuleIdentityType, ModuleInEvent...
export * from './block.layout.module'; export * from './two.block.component';
import { ApiProperty } from '@nestjs/swagger'; import { Column, Entity } from 'typeorm'; import { CustomBaseEntity } from './base.entity'; @Entity({ name: 'location_type' }) export class LocationType extends CustomBaseEntity { @Column() @ApiProperty() name: string; @Column({ nullable: true, type: 'text' }) ...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import createActionBuffer from 'redux-action-buffer'; import {REHYDRATE} from 'redux-persist/constants'; import thunk, {ThunkMiddleware} from 'redux-thunk'; const defaultOptions = { additionalMiddleware: ...
export const accountsMock = { "42b530a5-75d0-4249-8243-7e9c5e519ed6": { "id": "42b530a5-75d0-4249-8243-7e9c5e519ed6", "label": "Robert.Anz.01 M35 11..258", "bank_id": "au.01.aum.anz", "account_routing": { "scheme": "OBP", "address": "42b530a5-75d0-4249-8243-7e...
import { ChangeEvent, useCallback, useEffect, useState } from 'react'; import debounce from 'lodash/debounce'; import styled from 'styled-components'; import { AccountSelector, AssetSelector, Body, Box, Button, DemoGatewayBanner, Icon, InlineMessage, InputField, LinkApp, NetworkSelector, Power...
/** * Created by luigisenzamici on 27/02/17. */
import injection from "../util/injection.js"; import platform from "../util/platform.js"; import minimist from "minimist"; const argv: { _: string[], d?: string, dir?: string } = minimist(process.argv.slice(2)); // Gets passed directory const dir: string = argv.d || argv.dir; if(dir) injection(platform.dir, argv.d |...
import { Controller, Get, Query, Param, ParseIntPipe, Post, UseGuards, Body, Put, Delete, ValidationPipe, HttpCode, } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { ApiTags, ApiOperation, ApiOkResponse, ApiNotFoundResponse, ApiCreatedResponse, } from '@ne...
import clsx from 'clsx'; import { makeStyles } from '@material-ui/styles'; import { colors, Typography, Grid, Theme } from '@material-ui/core'; import { Image } from '@components/atoms'; import { CardProduct } from '@components/organisms'; const useStyles = makeStyles((theme: Theme) => ({ root: { padding: theme.spa...
import React from "react"; import { GalleryContainer } from "./Gallery.styles"; import { Image } from "./images"; function Gallery({ images, selectImage, }: { images: Image[]; selectImage: (img: Image) => void; }) { return ( <GalleryContainer> {images.map((image) => { return ( <fi...
export interface ERC20 { // view functions totalSupply: u64; balanceOf(account: string): u64; allowance(owner: string, spender: string): u64; // state changing functions transfer(recipient: string, amount: u64): void; approve(spender: string, amount: u64): void; transferFrom(sender: string, recipient: ...
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent implements OnInit { constructor() {} noMetaMask = false; ngOnInit() { if (typeof web3 === 'undefined') { th...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
/** * @tsplus type scope-name-conflict/A * @tsplus companion scope-name-conflict/AOps */ export class A { constructor(readonly conflict: string) {} } /** * @tsplus static scope-name-conflict/AOps conflict */ export function conflict(s: string): A { return new A(s) } function test() { A.x; const conflict ...
import { CanActivate, ExecutionContext, Injectable, UnauthorizedException } from '@nestjs/common'; import { PrismaClient } from '@prisma/client'; @Injectable() export class AuthenticatedGuard implements CanActivate { async canActivate( context: ExecutionContext ): Promise<boolean> { const prisma = new Pris...
import { DOCUMENT, LocationStrategy, PathLocationStrategy } from '@angular/common'; import { FlexLayoutModule } from '@angular/flex-layout'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { AppClientMaterialModule } from '@mono/client-material'; import { documentFactory, WEB_CLIE...
/** * Web Application Acceleration and Security Services API * OCI Web Application Acceleration and Security Services * OpenAPI spec version: 20181116 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, 2022, Oracle and/or its affiliates. A...
import * as React from "react"; import * as ReactDOM from "react-dom"; import BlockDetails from "./BlockDetails"; import { MockBlock, MockTransaction } from "../Util/MockBlockchain"; import { noOp } from "../Util/testUtils"; it("shows information about a block loaded from the blocklist service", async () => { const ...
import { Schema, BooleanPart, DatePart, NumberPart, ObjectPart, StringPart } from 'ts-api-validator'; import { Base58Part } from './schema.Base58Part'; import { MoneyPart } from './schema.MoneyPart'; import { OrderPricePart } from './schema.OrderPricePart'; import * as constants from '../constants'; import { removeAlia...
import { Inject, Injectable, InjectionToken, Optional } from '@angular/core'; import { HttpClient, HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Observable } from 'rxjs'; import { BASE_URL } from '@core/interceptors/base-url.interceptor'; import { switchMap } from 'rxjs/op...
export { Legend32 as default } 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 { input as inputs, output as outputs, enums } from "../../types"; import * as utilities from "../../utilities"; /*...
/// <reference path="meteor.d.ts" /> declare module Blaze { var View: ViewStatic; interface ViewStatic { new (name?: string, renderFunction?: Function): View; } interface View { name: string; parentView: View; isCreated: boolean; isRendered: boolean; isDestroyed: boolean; renderCo...
export default { // 默认展开的菜单栏key openKeys: ['/error'] };
class BaseError extends Error { constructor(message: string) { super(message); this.name = new.target.name; if (typeof (Error as any).captureStackTrace === 'function') { (Error as any).captureStackTrace(this, new.target); } if (typeof Object.setPrototypeOf === 'fu...
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
import { gql } from 'apollo-server-express' export default gql` type Company { ssn: String! name: String! application: CompanyApplication } type ApplicationLog { id: String! created: String state: String! title: String! data: String authorSSN: String } type CompanyApplic...
import { renderHook } from "@testing-library/react-hooks"; import { MockJSONServer, TestWrapper, act } from "@test"; import { useSelect } from "./"; import { CrudFilters, IDataContext, IDataMultipleContextProvider, } from "src/interfaces"; describe("useSelect Hook", () => { it("default", async () => ...
/** * @license * Copyright 2017 Google Inc. 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 React from "react"; import { useHistory } from "react-router-dom"; import NavigateBeforeIcon from "@material-ui/icons/NavigateBefore"; import styled from "styled-components/macro"; const StyledBackLink = styled.div` color: white; font-size: 17px; cursor: pointer; display: flex; a { color: inherit;...
// Learn TypeScript: // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/typescript.html // - [English] http://www.cocos2d-x.org/docs/creator/manual/en/scripting/typescript.html // Learn Attribute: // - [Chinese] https://docs.cocos.com/creator/manual/zh/scripting/reference/attributes.html // - [Englis...
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {Component} from '@angular/core'; import {bootstrap} from '@angular/platform-browser-dynamic'; // #docregion...
import { Component } from '@angular/core'; import { AuthService } from '../global/services/auth.service'; @Component({ selector: 'home', styleUrls: [ './home.component.scss' ], templateUrl: './home.component.html' }) export class HomeComponent { public navigations: any[] = [ { url: 'stix/attack-patterns'...
import React from "react"; import HeaderCell from "components/TableContainer/DataTable/HeaderCell/HeaderCell"; import TextCell from "components/TableContainer/DataTable/TextCell"; import TooltipWrapper from "components/TooltipWrapper"; interface IHeaderProps { column: { title: string; isSortedDesc: boolean;...
// This is a generated file from running the "createIcons" script. This file should not be updated manually. import React, { forwardRef } from "react"; import { FontIcon, FontIconProps } from "@react-md/icon"; export default forwardRef<HTMLElement, FontIconProps>( function ArrowUpwardFontIcon(props, ref) { retu...
import { Directive, ElementRef, Input } from '@angular/core'; @Directive({ selector: '[autofocus]' }) export class AutofocusDirective { private _autofocus = true; constructor(private el: ElementRef) {} ngOnInit() { // if (this._autofocus || typeof this._autofocus === "undefined") this.el.nativeElement.focus()...
import { ConflictException, HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { IImage } from './Interface/image.interface' import { PushImageDto } from './dto/push-image.dto' @Injectable() export class ImageService { private DB: IImage[] constructor() { this.DB = [ {id...
import { NestFactory } from '@nestjs/core'; import { AppModule } from './app/app.module'; import { ValidationPipe } from '@nestjs/common'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.useGlobalPipes(new ValidationPipe()); await app.listen(3000); } bootstrap();
import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { R269Component } from './r269.component'; const routes: Routes = [{ path: '', component: R269Component }]; @NgModule({ imports: [RouterModule.forChild(routes)], exports: [RouterModule] }) export class R269Ro...
import fs from "fs"; import * as path from "path"; import { Assignment } from "../utils"; import { RandomContraction } from "./random-contraction"; const assignmentFn = () => { const assignmentFile = fs.readFileSync(path.join(__dirname, "../../misc/assignment-4.txt")); const vertices = assignmentFile .toStri...
import { EventFilters } from "../../store/store.helpers"; import { $store } from "../../store/store"; import { $logger } from "../../utils/logger"; export default async function listTopics(query: { like?: string; withEvents?: EventFilters; limit?: number; offset?: number; }) { let result = await $s...
/** * Copyright 2018 Sven Loesekann 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...