text
stringlengths
10
953k
import { Injectable, HttpException } from '@nestjs/common' import { QuestionRepository } from './question.repository' import { CategoryRepository } from '../category/category.repository' import { InjectRepository } from '@nestjs/typeorm' import { QuestionWithCategoryNameDto, QuestionPostDTO } from './interfaces/questio...
import ViewCounter from 'components/ViewCounter'; import React from 'react'; import { MdOutlineFiberNew, MdOutlineFiberPin } from 'react-icons/md'; import * as Styled from './styles'; interface Props { title: string; description: string; tags: Array<string>; date: string; readingTime: string; slug: string...
import React, { Component, Fragment } from 'react'; import { Card, Spinner} from 'react-bootstrap'; import { observer } from "mobx-react" import wikiStore from '../../data/store'; import { reaction, IReactionDisposer } from 'mobx'; import Table from '../table/table'; import { TableCell, TableData, TableDTO } from '@/r...
import { NumberFormatOptions } from '../internationalization'; import { IntlBase as base } from './intl-base'; /** * interface for Numeric Formatting Parts */ export interface NumericParts { symbolRegex?: RegExp; nData?: base.NegativeData; pData?: base.NegativeData; infinity?: string; type?: strin...
import { Resolver, Query, ResolveProperty, Parent, Args } from "@nestjs/graphql"; import { AuthorService } from "../services/author.service"; import { BookService } from "../../book/services/book.service"; import { Author, Book } from "src/graphql"; @Resolver('Author') export class AuthorResolver { constructor( ...
import { Component, OnInit, Output, EventEmitter } from '@angular/core'; @Component({ selector: 'app-courses-list-tools', templateUrl: './courses-list-tools.component.html', styleUrls: ['./courses-list-tools.component.css'] }) export class CoursesListToolsComponent implements OnInit { @Output() clickFind = new...
import dotenv from 'dotenv'; dotenv.config(); const { DISCORD_TOKEN: TOKEN = '', PREFIX = '', DEV_GUILD_ID = '', DEV_CLIENT_ID = '', DYTE_ORGANIZATION_ID = '', DYTE_API_KEY = '', DYTE_BASE_URL = '', DYTE_CLIENT_URL = '', RULES_AND_GUIDELINES_CHANNEL_ID = '', } = process.env; const...
/** * 숫자를 3자라씩 구분해줍니다 * @param num * @param separator */ export declare function separate( num: number | string, separator?: string ): string;
import { Injectable } from '@angular/core'; import { ActivatedRouteSnapshot, GuardsCheckEnd, NavigationCancel, NavigationEnd, NavigationError, ResolveEnd, Router, RoutesRecognized } from '@angular/router'; import { RouterState, RouterStore } from './router.store'; import { RouterQuery } from './router.query'; import { ...
import { Args, Query, Resolver, Int, Parent, } from '@nestjs/graphql'; import { Post } from './posts.model'; import { UsersService } from '../users/users.service'; import { PostsService } from './posts.service'; @Resolver((of) => Post) export class PostsResolver { constructor( // private usersService: ...
import { UseGuards } from '@nestjs/common'; import { Args, Mutation, Resolver , Query, Subscription } from '@nestjs/graphql'; import { Clients } from './clients.entity'; import { ClientsService } from './clients.service'; import { CreateClientsInput } from './dto/create-clients.input'; import { LoginClientsInput } from...
/* * Copyright 2020 Adobe. All rights reserved. * This file is licensed to you 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 appli...
import Client from '../../db' import { test_order, test_orderProduct, test_product, test_product_store, test_order_store, test_user, test_user_store, updated_test_order } from '../types' describe('order model', () => { beforeAll(async () => { await test_product_store.create(test_product) awai...
export * from './enums'; export * from './interfaces'; export * from './class-loader'; export * from './file-system';
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca@valencia" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About Zlotycoin</source> <translation type="unfinished"/> </message> <message> <loca...
import { expect } from "chai"; import { DOM } from "../dom"; import { FASTElementDefinition } from "./fast-definitions"; import { ElementStyles } from "../styles/element-styles"; describe("FASTElementDefinition", () => { class MyElement {} context("styles", () => { it("can accept a string", () => { ...
import React from "react"; import { parseFloatToString } from "../FloatTimeInput/FloatTime.helper"; export const FloatTimeValue = ({ value = 0 }: { value?: number }) => { return <>{parseFloatToString(value)}</>; };
const External = ({ className }) => { return ( <div className={className}> <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="12px" height="12px" viewBox="0 0 511.626 511.627"> <g> <g> <path d="M392.857,292.354h-18.274c-2.669,0-4.85...
import styles from "../styles/components/Sidebar.module.css"; import { useRouter } from "next/router"; export function Sidebar({ active }) { const route = useRouter(); function mudarRotaHomeOrRanking(){ if(active === 'home'){ route.push("/ranking"); }else if(active === 'ranking'){ route.push("/");...
import { Component } from '@angular/core'; @Component({ selector : 'laravel', template : `<h1>Hello {{name}}</h1>` }) export class LaravelComponent{ name = "Laravel"}
/* * Copyright 2018-present Open Networking Foundation * * 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 appli...
import { assignments } from '../mock-data' export interface IAddAssignment { name: string requiredFiles: string[] peerReviewDeadline?: string rateFeedbackDeadline?: string feedbackQuestions: string[] groupSize: number isActive: boolean } // add a new assignment export const addAssignment = (_: any, args...
/** * @since 0.5.0 */ import * as t from 'io-ts' /** * @since 0.5.0 */ export interface NumberFromStringC extends t.Type<number, string, unknown> {} /** * @example * import { NumberFromString } from 'io-ts-types/es6/NumberFromString' * * NumberFromString.decode('1') // right(1) * NumberFromString.decode('1.1')...
import { ChartAxis } from "../chartAxis"; export declare class TimeAxis extends ChartAxis { constructor(); private _nice; nice: boolean; domain: Date[]; }
import { Component, OnInit } from '@angular/core'; @Component({ selector: 'app2-device', templateUrl: './device.component.html', styleUrls: ['./device.component.css'] }) export class DeviceComponent implements OnInit { constructor() { } ngOnInit() { } }
import { NestFactory } from '@nestjs/core'; import { NestExpressApplication } from '@nestjs/platform-express'; import { join } from 'path'; import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create<NestExpressApplication>(AppModule); app.setBaseViewsDir(join(__dirn...
export interface Customer { id: number; first_name: string; last_name: string; email: string; street: string; city: string; country: string; }
import { devConstants, env, EnvVars, web3Factory } from '@0x/dev-utils'; import { prependSubprovider, Web3ProviderEngine } from '@0x/subproviders'; import { logUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as _ from 'lodash'; import { coverage } from './coverage'; import { profiler...
import { createSearchRouter } from "../../../../dist/index"; const searchrouter = createSearchRouter(); console.log(searchrouter); console.log(searchrouter.getparams()); searchrouter.on("params", (p) => { console.log(p); }); export { searchrouter };
/** * Socket.io configuration */ 'use strict'; //import config from './environment'; export class Socketio { socketio: any; constructor(socketio) { this.socketio = socketio; socketio.on('connection', function (socket) { socket.address = socket.request.connection.remoteAddress + ':' + socket.request....
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import React, { useMemo } from 'react'; import { i18n } from '@kbn/i18n'; imp...
import { gql } from "apollo-server-express"; const schema = gql` scalar DateTime type Query { now: DateTime } `; export default schema;
import axios from 'axios'; export async function getActivities() { const response = axios.get('https://raw.githubusercontent.com/probono-digital/DesafioTecnico/main/MOCK_DATA.json'); return response; } export function openWeatherApi(city: string){ const apiKey = '038cc0c6a4418ed93c43d8a2cdd8a016'; const r...
/* eslint-disable */ import axios from 'axios' import _ from 'underscore' import hex from 'hex-string' import { TotalBalance, AddressBalance, Transaction, RPCConfig, TxDetail, Info, SinglePastelID, } from './components/AppState' import Utils, { NO_CONNECTION } from './utils/utils' import SentTxStore from...
import { DockerComposeService, DockerComposeVolume } from 'lib/support/compose'; /** * Interface IYAMLBuilderOptions. */ export interface IYAMLBuilderOptions { // header message. header: string; // syntax version number. version: string; // list of compose services. services: DockerComposeService[]; //...
type AnyObject = Record<string, any>; type AsyncVoidFunction = () => Promise<void>; type Unpromise<MaybePromise> = MaybePromise extends Promise<infer Type> ? Type : MaybePromise; type AsyncReturnType<T extends (...args: any) => any> = Unpromise<ReturnType<T>>; interface FeatureInfo { name: string; description: strin...
import * as authActions from '../actions/auth.actions'; export interface State { userName?: string; friendlyName?: string; } export const initialState: State = { userName: null, friendlyName: null }; export function reducer(state = initialState, action: authActions.AuthActions): State { switch (action.type...
import * as vscode from 'vscode'; import Submit from './submit'; import Data from './data'; import DataFile from './dataFile'; const commands:Array<vscode.Disposable> = [Submit, Data, DataFile ]; export function registerCommands(context: vscode.ExtensionContext) { for (const cmd of commands) { context.subs...
import React from 'react' import { render, cleanup, fireEvent } from '@testing-library/react' import '@testing-library/jest-dom/extend-expect' import Interactive from './components/Interactive' import { InteractiveType } from './components/types' // import InteractiveDom from './components/InteractiveDom' afterAll(cle...
import { QuestionsRole } from 'roles/rolesQuestions.enum'; import { EntityRepository, Repository } from 'typeorm'; import { Answers } from './entities/answers.entity'; @EntityRepository(Answers) export class AnswersRepository extends Repository<Answers> { async getAnswersWithQuestion( role: QuestionsRole, id...
// import React, { FC, useCallback, useState } from 'react' import { Grid, makeStyles } from '@material-ui/core' // import AppLayout from 'src/layouts/AppLayout/AppLayout' import SlideCanvas from 'src/components/SlideCanvas/SlideCanvas' import SlideThumbnails from '../SlideThumbnails/SlideThumbnails' import SlideNote f...
import Knex from 'knex'; export async function up(knex: Knex) { return knex.schema.createTable('classes', table => { table.increments('id').primary(); table.string('subject').notNullable(); table.string('cost').notNullable(); table.integer('user_id') .notNullable() .references('id') ...
import React from 'react'; import { Trans } from '@lingui/macro'; import { useDispatch } from 'react-redux'; import { ConfirmDialog, More } from '@seno/core'; import { Box, Divider, ListItemIcon, MenuItem, Typography } from '@material-ui/core'; import { DeleteForever as DeleteForeverIcon, Info as InfoIcon, } from '...
import { AppStreamClient } from "./AppStreamClient"; import { AssociateFleetCommand, AssociateFleetCommandInput, AssociateFleetCommandOutput, } from "./commands/AssociateFleetCommand"; import { BatchAssociateUserStackCommand, BatchAssociateUserStackCommandInput, BatchAssociateUserStackCommandOutput, } from ...
/** * DO NOT EDIT * * This file was automatically generated by * https://github.com/Polymer/tools/tree/master/packages/gen-typescript-declarations * * To modify these typings, edit the source file(s): * vaadin-upload.js */ // tslint:disable:variable-name Describing an API that's defined elsewhere. export...
import { ApiProperty } from "@nestjs/swagger"; import { Types } from "mongoose"; export class DownloadInterface { @ApiProperty() userId: Types.ObjectId; }
import { Octokit as Core } from "@octokit/core"; import { createPullRequest } from "../src"; const Octokit = Core.plugin(createPullRequest); test("draft pr", async () => { const fixtures = require("./fixtures/happy-path"); const fixturePr = fixtures[fixtures.length - 1].response; const octokit = new Octokit(); ...
import en from '../locale/en.json'; import { LocaleReducer, ReducerAction } from '../types'; import { INIT_LOCALE } from '../constants/ActionTypes'; const INITIAL_STATE: LocaleReducer = { strings: en }; export default (state: LocaleReducer = INITIAL_STATE, action: ReducerAction): LocaleReducer => { switch (action...
import React from 'react'; import { styled, ThemeProvider, convert, themes } from '@storybook/theming'; import { EmptyBlock } from './EmptyBlock'; import { SyntaxHighlighter } from '../syntaxhighlighter/syntaxhighlighter'; const StyledSyntaxHighlighter = styled(SyntaxHighlighter)(({ theme }) => ({ // DocBlocks-spec...
import { setTimeout } from "timers" import { Event } from "../src/events" import { Job } from "../src/jobs" // MockJob extends Job to make success or failure configurable. This allows us // to force Job failures when a test case requires it. export class MockJob extends Job { public fail = false public delay = 1 ...
import { IContentResult } from "../content"; export interface IProposal { id: number; proposal_id: number; creator: string; receiver: string; start_date: Date; end_date: Date; daily_pay: IDailyPay; subject: string; permlink: string; total_votes: number; status: string; } export interface IPropos...
<TS language="da" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Højreklik for at rette adressen eller teksten</translation> </message> <message> <source>Create a new address</source> <tra...
import { IExecuteFunctions } from 'n8n-core'; import { GenericValue, IDataObject, INodeExecutionData, INodeType, INodeTypeDescription, } from 'n8n-workflow'; import { set } from 'lodash'; import * as redis from 'redis'; import * as util from 'util'; export class Redis implements INodeType { description: INodeT...
import { RegionInfo, RegionInfoProvider } from "../types/mod.ts"; // Partition default templates const AWS_TEMPLATE = "translate.{region}.amazonaws.com"; const AWS_CN_TEMPLATE = "translate.{region}.amazonaws.com.cn"; const AWS_ISO_TEMPLATE = "translate.{region}.c2s.ic.gov"; const AWS_ISO_B_TEMPLATE = "translate.{regio...
import { expect, fixture } from "@open-wc/testing"; import { MobileDropdown } from "../index"; const initItems = [ { label: "-----", value: "-----" }, { label: "Orange", value: "orange" }, { label: "Apple", value: "apple" } ]; describe("MobileDropdown", () => { describe("changeEvent", () => { it("should b...
import React from "react"; import { Colors } from "config/colors"; type Prop = { color?: string | Colors; width?: number | string; height?: number | string; }; export var EyesIcon: React.FC<Prop> = function ({ color = Colors.Muted, width = 32, height = 32, }) { return ( <svg width={width} height={he...
import AbstractScrollOperator from "./AbstractScrollOperator"; import Operator from "../Operator"; import ScrollPresenter from "../../presenters/ScrollPresenter"; import SettingRepository from "../../repositories/SettingRepository"; export default class ScrollToHomeOperator extends AbstractScrollOperator implement...
import { addMigrationSteps } from './databaseMigration' import { PeripheralDeviceAPI } from '../../lib/api/peripheralDevice' import { PeripheralDevices } from '../../lib/collections/PeripheralDevices' // Release 21 export const addSteps = addMigrationSteps('1.9.0', [ { id: 'migrateScannersToWatchers', canBeRunAut...
import * as AWS from 'aws-sdk' const main = async () => { const cf = new AWS.CloudFormation({ region: 'us-east-1' }); let resources = await cf.listStackResources({ StackName: 'LambdaStack' }).promise(); let cfLambda = getLambdaFromResources(resources); if (cfLambda && cfLambda.PhysicalResourceI...
import { TestBed } from "@angular/core/testing"; import { CharacterService } from "./character.service"; describe("CharacterService", () => { beforeEach(() => TestBed.configureTestingModule({})); it("should be created", () => { const service: CharacterService = TestBed.get(CharacterService); expect(servi...
import { JWK, JWT } from "@panva/jose"; import { expect } from "chai"; import isAuthTokenExpired from "../../../../src/common/AuthService/OidcAuthStrategy/isAuthTokenExpired"; const signingKey = JWK.generateSync("RSA"); describe("OidcAuthStrategy util isAuthTokenExpired", () => { describe("returns wether a jwt a...
/** * Represents the serialisable data from a {@link Map}. */ export interface SerializableMapData<TValue> { /** * Get the value with the specified key. * * @param key The key. */ [key: string]: TValue; } /** * Convert a {@link Map} to serialisable data. * * @param map The {@link Map...
import { ButtonHTMLAttributes } from 'react'; import { ElevationProp } from '../../theme/theme.types'; import { BackgroundType, ButtonSizeProps, CursorType, GutterAndSizeType, InsetType, TextType, TransformType, TransitionType, } from '../../../types'; import { ReactNode } from 'react'; export type But...
import { getGuessStatuses } from './statuses' import { solutionIndex } from './words' import { WORDLE_TITLE } from '../constants/strings' export const shareStatus = (guesses: string[], lost: boolean) => { let shareText = `${WORDLE_TITLE} ${solutionIndex} ${lost ? 'X' : guesses.length}/6\n\n` + generateEmojiGrid(gues...
import GenericService from '../GenericService/GenericService'; import Application from '../../Model/Application'; class ApplicationService extends GenericService<Application> { constructor(endPoint: string) { super(Application, endPoint); } } export default ApplicationService;
import { Component } from '@angular/core' @Component({ selector: 'timey-loading', templateUrl: './loading.component.html', styleUrls: ['./loading.component.scss'] }) export class LoadingComponent { constructor( ) { } }
export default class MLParseError extends Error { constructor(readonly line: number, readonly col: number, readonly raw: string, readonly nodeName: string) { super(`The ${nodeName} is invalid element (${line}:${col})`); } }
export * from './geolocationController.service'; import { GeolocationControllerService } from './geolocationController.service'; export * from './leaveRequestController.service'; import { LeaveRequestControllerService } from './leaveRequestController.service'; export * from './patientController.service'; import { Patie...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="eu_ES" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About BitcoinFor</source> <translation type="unfinished"/> </message> <message> <location ...
import { isEqual } from "./isEqual"; describe("isEqual", () => { [ [null, null, true] as any, [undefined, null, false], [1, 1, true], ["equal", "equal", true], ["equal", "not equal", false], [new Date(), new Date(), true], [{}, {}, true], [{ a: 1, b: 2 }, { b: 2, a: 1 }, true], [{...
import React, {ReactNode} from 'react'; import {DialogHeaderProps, DialogHeader} from '../Headers/DialogHeader'; import {NoticeProps, Notice} from '../../commons/Notice'; import {UNavBarMobile} from '../UNavBarMobile'; export interface DialogWrapperProps extends DialogHeaderProps, NoticeProps { children: ReactNode; ...
import React, { useState } from "react"; import { FormattedMessage } from "react-intl"; import ContentCard from "components/ContentCard"; import ServiceForm from "views/Connector/ServiceForm"; import { AnalyticsService } from "core/analytics/AnalyticsService"; import useRouter from "components/hooks/useRouterHook"; im...
import { Injectable } from '@angular/core'; import { HttpClient, HttpHeaders } from '@angular/common/http'; import { UtilitiesService } from '../services/utilities.service'; import { environment } from '../../../../environments/environment'; import { Observable } from 'rxjs'; @Injectable({ providedIn: 'root', }) exp...
import { Obj } from '@chego/chego-api'; const mergeObjectsRecursively = (target:Obj, current:Obj) => { for (const property in current) { try { if (current[property].constructor === Object) { target[property] = mergeObjects(target[property], current[property]); } else...
//#region > Imports //> React // Contains all the functionality necessary to define React components import {Container, Heading, Text, Box} from '@chakra-ui/react' import React from 'react' // React Router import {Element} from 'react-scroll' // import { Link } from "react-router-dom"; //> CSS import './index.scss' //...
import { AlertPo } from '../pages/alert.po'; import { click, doesItExist, getElementArrayLength, getImageTagBrowserPlatform, refreshPage, saveElementScreenshot, waitForElDisplayed, waitForInvisibilityOf, checkElementScreenshot, isElementDisplayed, pause, waitForPresent, ...
import { Injectable } from '@angular/core'; import { LineNumberingMode } from 'app/site/motions/motions.constants'; /** * Shape of line number objects */ interface LineNumberObject { lineNumber: number; marginBottom?: number; } /** * Converts HTML strings to pdfmake compatible document definition. * * TO...
import { Injectable } from '@angular/core'; import { IFeed } from 'src/app/services/feed-api.model'; import { Router } from '@angular/router'; @Injectable({ providedIn: 'root' }) export class FeedService { selectedEntry: IFeed; feedAuthorprefix = `Posted by u/`; constructor(private router: Router) { } load...
import { Body, Controller, Delete, Get, Param, ParseIntPipe, Patch, Post, Query, UseGuards, } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { GetUser } from '../users/decorators/get-user.decorator'; import { User } from '../users/entities/user.entity...
import { Localized } from "@fluent/react/compat"; import { FormApi } from "final-form"; import React, { FunctionComponent } from "react"; import { Form } from "react-final-form"; import { purgeMetadata } from "coral-framework/lib/relay"; import CLASSES from "coral-stream/classes"; import { Icon } from "coral-ui/compon...
/* 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 { VectorE2 } from './VectorE2'; /** * @hidden * @param name * @param v * @returns */ export declare function mustBeVectorE2(name: string, v: VectorE2): VectorE2;
// @ts-nocheck import React from 'react'; import { useResourceContext } from 'react-admin'; import FolderList from '../../../components/FolderList'; const FavoriteList = (props) => { const { resource } = useResourceContext(); return ( <FolderList {...props} data={props} name={resource} pagination={fals...
import Image from 'next/image'; import Link from 'next/link'; import Head from 'next/head'; import type { NextPage } from 'next'; import { APP_NAME } from '../../config/constants'; import AnimatedBackground from '../../components/shared/AnimatedBackground'; import useNickname from '../../helpers/hooks/useNickname'; imp...
import { Box, CardActionArea, CardHeader as CardHeaderMui, Collapse, Grid, Link, Typography, } from "@material-ui/core" import { makeStyles } from "@material-ui/styles" import { useFormik } from "formik" import React, { useContext, useState } from "react" import { useMutation } from "react-query" import c...
import { ElementRef, Injectable } from '@angular/core'; @Injectable() export class CommonService { svgCanvas: ElementRef; mainElement: ElementRef; mappingElement: ElementRef; private areaWidth = {}; constructor() {} setAreaWidth(area: string, width: number) { this.areaWidth[area] = width; } get...
import { expect } from 'chai'; import sinon from 'sinon'; import { noopLogger } from '../../src/noop-logger.js'; describe('noopLogger', () => { it('should not enable any logging', () => { expect(noopLogger.isTraceEnabled()).false; expect(noopLogger.isDebugEnabled()).false; expect(noopLogger.isInfoEnable...
import React, { ReactNode, ReactElement } from 'react'; import styled from 'styled-components'; import { Flex, TooltipIcon } from '@rolls/core'; import { Box, Card, CardContent, Typography, TypographyProps, CircularProgress, } from '@material-ui/core'; const StyledCard = styled(Card)` height: 100%; ove...
/** * @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 { CompileReflector, core, DirectiveResolver } from '@angular/compiler'; /** * An implementation of {@link Dir...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *-------------------------------------------------------------------------...
import styled from "styled-components"; export const Card = styled.div` display: flex; align-items: center; justify-content: space-between; padding: 20px; background-color: #ffffff; `;
import { IMongoData } from './IMongoData'; import { IModel } from './IModel'; import { ICrudConnection } from './ICrudConnection'; export interface IMongoModel<T extends IMongoData, U extends ICrudConnection<string, T, any>> extends IModel<string, T, U> { }
import { WebComponent } from './WebComponent'; import { singleton } from 'aurelia-dependency-injection'; @singleton() export class AureliaApplication { constructor() { } public components: WebComponent[] = []; }
import {default as PageJ, metadata as MetadataJ} from './index'; export const routs = { '/tools/compressors/js/': { page: PageJ, metadata: MetadataJ, }, };
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import {HttpClientModule, HTTP_INTERCEPTORS} from '@angular/common/http' import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { HeaderComponent } from './heade...
import Post from "@/components/posts/PostInfo.ts"; export default class PostManager { // fullname eg. test/test==========2020-03-18 public static SPLITER = "=========="; private map: Map<string, Post | Map<string, Post>> = new Map(); getPost(fullName: string): Post | undefined { const slited = this.splite...
export declare type OTableFiltersStatus = { name: string; description?: string; filter?: any; };
import { LocalStorageItem } from './useLocalStorageItem'; /** * See documentation: [useLocalStorageObject](https://justinmahar.github.io/react-use-window-localstorage/useLocalStorageObject) * * This hook gets and sets an `Object` in [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)...
import { Layer } from '../core/types'; import { Polygon } from '../../utils/geometry'; import { CanvasColorType } from '../core/OperationFactory'; export const PolygoneLayer: Layer<{ polygone: Polygon; color?: CanvasColorType }> = (ctx, { polygone, color }) => { if (polygone.length < 2) { return []; } return...