text
stringlengths
10
953k
import * as React from 'react' function SvgComponent(props: React.SVGProps<SVGSVGElement>) { return ( <svg viewBox="0 0 24 24" {...props}> <title> {'HTML is the standard markup language for creating Web pages.'} </title> <path d="M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2...
import { FrameGraphHandle } from '../../framegraph/FrameGraphHandle'; import { FrameGraphPass } from '../../framegraph/FrameGraphPass'; import { PassNode } from '../../framegraph/PassNode'; import { FrameGraphSystem } from '../../framegraph/System'; import { IRenderPass } from './IRenderPass'; export interface CopyPass...
import { Tree } from '@angular-devkit/schematics'; import { SchematicTestRunner } from '@angular-devkit/schematics/testing'; import * as path from 'path'; const collectionPath = path.join(__dirname, '../collection.json'); describe('module', () => { it('works', async () => { const runner = new SchematicTestRun...
import { ComponentFixtureAutoDetect, TestModuleMetadata } from '@angular/core/testing'; import { ShowdownConfig } from '../showdown-config.provider'; import { ShowdownComponent } from '../showdown.component'; import { createComponentFixture } from './helpers'; let showdownComponentModuleMetadata: TestModuleMetadata = ...
import React from 'react'; import Tag from '../src'; export default () => ( <div> <Tag text="standard Tag" color="standard" /> <Tag text="blue Tag" color="blue" /> <Tag text="green Tag" color="green" /> <Tag text="teal Tag" color="teal" /> <Tag text="purple Tag" color="purple" /> <Tag text="r...
import { logger } from "@truffle/db/logger"; const debug = logger("db:meta:pouch:adapters:base"); import PouchDB from "pouchdb"; import PouchDBDebug from "pouchdb-debug"; import PouchDBFind from "pouchdb-find"; import type { CollectionName, Collections, MutationInput, MutationPayload, MutableCollectionName,...
// Type definitions for argparse 1.0 // Project: https://github.com/nodeca/argparse // Definitions by: Andrew Schurman <https://github.com/arcticwaters> // Tomasz Łaziuk <https://github.com/tlaziuk> // Sebastian Silbermann <https://github.com/eps1lon> // Kannan Goundan <h...
import { join } from 'path'; import { SCRIPT_EXTS } from '../common/constant'; import { readFileSync, existsSync } from 'fs-extra'; let depsMap: Record<string, string[]> = {}; let existsCache: Record<string, boolean> = {}; // https://regexr.com/47jlq const IMPORT_RE = /import\s+?(?:(?:(?:[\w*\s{},]*)\s+from\s+?)|)(?:...
import { AppUser, AuthApi, LoginOAuthResult, RemoteApi } from "types"; import * as google from "@api/googleApi"; import firebaseApi from "@api/firebaseApi"; import firebase from "firebase"; let _remoteApi: RemoteApi | null = null; const initializeAuthApi = (api: RemoteApi) => { _remoteApi = api; }; const getCurr...
import useSWR from 'swr' import { fetcher } from 'libs/fetcher' import { apiCounter } from 'constants/paths' function useCounter() { const { data, error } = useSWR(apiCounter, fetcher) return { urls: data?.urls + 100 || 0, users: data?.users + 17 || 0, isLoading: !error && !data, isError: Boolea...
import { IconProps } from "../lib"; declare const DotsSix: (props: IconProps, ref: any) => import("solid-js").JSX.Element; export default DotsSix;
import { TestBed } from '@angular/core/testing'; import { FileApiService } from './file-api.service'; describe('FileApiService', () => { let service: FileApiService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(FileApiService); }); it('should be created', () => { ...
// Copyright 2017 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...
export function removeValues(obj: any, ...values: any[]){ Object.keys(obj).forEach(key => values.includes(obj[key]) && delete obj[key]); return obj; } export function pick<T, K extends keyof T>(obj: T, valid?: K[]): Pick<T, K> { if(!valid) return obj; Object.keys(obj).forEach(key => !valid.includes(key as K) && de...
import { Module } from '@nestjs/common'; import { ChatService } from './chat.service'; import { ChatGateway } from './chat.gateway'; import { TypeOrmModule } from '@nestjs/typeorm'; import { ChatMessage } from './entities/chat-message.entity'; import { MessageFiles } from './entities/message-file.entity'; import { User...
version https://git-lfs.github.com/spec/v1 oid sha256:2651895c89628e9ff5a88bb8a044c03498107054140bba0b0dc54b932f6db84b size 281812
/** * NewForm 部件模型 * * @export * @class NewFormModel */ export default class NewFormModel { /** * 获取数据项集合 * * @returns {any[]} * @memberof NewFormModel */ public getDataItems(): any[] { return [ { name: 'srfwfmemo', prop: 'srfwfmemo', dataType: 'TEXT', }, ...
/** * @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, OnInit } from '@angular/core'; @Component({ selector: 'app-comp-1195', templateUrl: './comp...
import { LayoutComponent } from './layout.component'; import { reciterRoutingModule } from './reciter-routing.module'; import { AudioPlayerComponent } from './audio-player/audio-player.component'; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { BrowserModule } from '@a...
import { transformToCss, transformToCssVariables } from '../utils/transform-to-css'; import Base from './base'; import type { StyleInterface, PropMark } from './base'; export default class Background extends Base implements StyleInterface { static colorPropMark: PropMark[] = [ ['background-color', ['background-c...
import { KorisnikRegistracija } from './../model/korisnikRegistracija.model'; import { Korisnik } from './../model/korisnik.model'; import { Observable } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) // klasa koja služ...
import React from "react"; import { PasswordTile } from "../../molecules"; import * as S from "./styles"; export const AccountTab: React.FC = () => { return ( <S.Wrapper> <PasswordTile /> </S.Wrapper> ); };
import { Dispatch, View } from 'front-end/lib/framework'; import * as FormField from 'front-end/lib/views/form-field/lib'; import * as Input from 'front-end/lib/views/form-field/lib/input'; import { default as React, KeyboardEventHandler } from 'react'; import { InputGroup, InputGroupAddon } from 'reactstrap'; import {...
/// <reference types="react" /> import type { I18n } from './I18n'; export declare const I18nContext: import("react").Context<I18n | undefined>;
import React from 'react' import { Text, View } from 'react-native' import { SvgProps } from 'react-native-svg' import { RectButton, RectButtonProps } from 'react-native-gesture-handler'; import { LinearGradient } from 'expo-linear-gradient'; import { styles } from './styles'; import { theme } from '../../global/style...
/* * 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 { renderHook, act, cleanup } from '@testing-library/react-hooks'; impo...
export interface HttpClientResponse<T = any> { data: T; status: number; headers: object; }
export interface Pages { pageNumber: number, image:any, date:any }
export declare const UnoTheme: import("@material-ui/core/styles/createMuiTheme").Theme;
import { flush, render } from '@stencil/core/testing'; import { PcBadge } from './pc-badge'; describe('pc-badge', () => { it('should build', () => { expect(new PcBadge()).toBeTruthy(); }); describe('rendering', () => { let element; beforeEach(async () => { element = await render({ comp...
/* eslint-disable import/prefer-default-export */ import { Entity, ManyToOne, Property } from '@mikro-orm/core' // eslint-disable-next-line import/no-cycle import { Workspace, WorkspaceStub } from './index'; import { BaseEntity, BaseEntityStub } from './BaseEntity'; @Entity() export class Folder extends BaseEntity { ...
export * from "./label" export * from "./link-label"
import { Square } from '../types'; export const STATUS_WIN_LOSE = 'STATUS_WIN_LOSE'; export const STATUS_DRAW = 'STATUS_DRAW'; // Helpers - not exported export const fillWithDefaultPlayerValues = (_: undefined, index: number) : Square => ({ id: index, player: '', }); export default { STATUS_DRAW, STATUS_WIN_LOSE...
import { Hash } from 'utils/hash'; import { pg } from 'db/connect'; import { User } from '@types'; const mongoid = require('mongoid-js') export default class UserQuery extends Hash { constructor() { super() } //si getLogin(matricula: string): Promise<User> { const text = 'SELECT * FROM df....
import {Payload} from '@api/auth'; import {verifyPayload$} from '@api/auth'; import db from '@core/db'; import {of, throwError} from 'rxjs'; describe('Auth middleware', () => { test('#verifyPayload$ checks if user exists in DB', done => { // given const payload: Payload = {_id: 'test_id', email: 't...
import Header from '@/views/layout/Header.vue' import NavLink from '@/views/layout/header/NavLink.vue' import { mount } from '@vue/test-utils' import router from '@/router' describe('Header', () => { test('renders snapshot', () => { const wrapper = mount(Header, { global: { plugins: [router] }, }) ...
/** * @license * Copyright Google LLC 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 { Directionality } from '@angular/cdk/bidi'; import { Overlay, RepositionScrollStrategy, ScrollStrategy } from ...
import { AuthenticatedUser } from '../../auth' import { UserAreaUserFields } from '../../graphql-operations' export interface UserProps { user: Pick<UserAreaUserFields, 'id' | 'tags' | 'builtinAuth'> authenticatedUser: Pick<AuthenticatedUser, 'id' | 'tags'> } export const externalServiceUserMode = (props: Use...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import {Tensor} from '../../../tensor'; import {WebGLInferenceHandler} from '../inference-handler'; import {ProgramInfo, ProgramInfoLoader, ProgramMetadata, TextureType} from '../types'; import {ConvAttributes} from './con...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './screens/app/App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render( <App />, document.getElementById('root') ); // If you want your app to work offline and load faster, you can change // unre...
export declare class CreateCommentDto { content: string; article_id: number; }
import './clean-dashboard.css'; import * as pageDetect from 'github-url-detection'; import features from '.'; void features.addCssFeature(__filebasename, [pageDetect.isDashboard]);
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { TvShowsPageComponent } from './tv-shows-page/tv-shows-page.component'; import { TvShowService } from './tv-show.service'; import { DevextremeModule } from 'app/devextreme.module'; import { MaterialModule } from 'app/mater...
import { Message } from 'discord.js' import { Command } from '@customTypes/commands' import { UsersRepository } from '@database' import { CommandContext } from '@models/command_context' import functions from '../../functions' export default class MarryCommand implements Command { commandNames = ['marry', 'marriage...
import { layers } from '@uidu/theme'; import styled, { css, keyframes } from 'styled-components'; interface TargetProps { pulse?: boolean; bgColor?: string; radius?: number; } interface TargetProps { pulse?: boolean; bgColor?: string; radius?: number; } // NOTE: // Pulse color "rgb(101, 84, 192)" derived...
import "reflect-metadata"; import * as path from "path"; import { buildSchema } from "type-graphql"; import { GraphQLError, GraphQLFormattedError } from "graphql"; import { ApolloServer } from "apollo-server"; import { environment } from "./environment"; import pubSub from "./pubsub"; import { InfoResolver } from "./re...
import React from 'react'; import { Feather } from '@expo/vector-icons'; import { SessionButton, SessionButtonTitle, SessionButtonDescription, DateView, SessionArea, SessionDateDescription, } from './styles'; interface SessionProps { title: string; description: string; startAt: Date; expireAt: Date; onPress...
import { DocumentNode, GraphQLBoolean, GraphQLID, GraphQLList, GraphQLNonNull, GraphQLObjectType, GraphQLResolveInfo, GraphQLSchema, GraphQLString, NameNode, parse, } from "graphql"; import { compileQuery } from "../index"; function executeQuery( schema: GraphQLSchema, document: DocumentNode,...
/* * Copyright (c) 2020. dev-eth0.de All rights reserved. */ import React from "react"; import {Material} from "./Material"; import "./MaterialList.scss"; interface MaterialListProps { materials: string[]; } export function MaterialList(props: MaterialListProps) { return <div className={"pru-m-materiallist...
import { Event, EventInternals } from "./event"; import { activeDiff } from "./beatmap"; import { copy } from "./general"; import { EVENT } from "./constants"; export namespace LightRemapperInternals { export class BaseLightRemapper { protected startType: EVENT; protected endType: EVENT; pr...
import { Reducer, Transducer } from "../api"; import { $iter, iterator } from "../iterator"; /** * Transducer to create overlapping and non-overlapping sliding windows * of inputs. Window size and progress speed can be configured via * `size` and `step`. By default only full / complete partitions are * emitted. Ho...
import Image from '../models/Image'; export default { render(image: Image) { return { id: image.id, url: `http://192.168.1.103:3333/uploads/${image.path}`, }; }, renderMany(images: Image[]) { return images.map(image => this.render(image)); } };
import { pipe, share, filter, merge, map, onPush } from 'wonka'; import { Exchange, OperationResult, Operation } from '@urql/core'; type SuspenseCache = Map<number, OperationResult>; type SuspenseKeys = Set<number>; const shouldSkip = ({ operationName }: Operation) => operationName !== 'subscription' && operationNa...
import { Express } from 'express'; import { expRouter } from './exp.router'; export function useExpress(server: Express) { server.use('/express', expRouter); }
import {NgbDate} from './ngb-date'; import {Injectable} from '@angular/core'; import {isInteger} from '../util/util'; export function fromJSDate(jsDate: Date) { return new NgbDate(jsDate.getFullYear(), jsDate.getMonth() + 1, jsDate.getDate()); } export function toJSDate(date: NgbDate) { const jsDate = new Date(dat...
import React from 'react'; import { IIcon } from '@models/icon/IIcon'; function IcoNotebook({ width = 24, height = 24, fill = 'currentColor' }: IIcon) { return ( <svg version='1.1' width={width} height={height} viewBox='0 0 24 24' > <path fill={fill} d='M3,7V5H5V4C5,2....
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export * from './core'; export * from './process'; export * from './functions'; export * from './format';
import { Dictionary } from "../../util"; import { Shader } from "../shader"; import { NativeTexture } from "./native-texture"; import { UniformData } from "./uniform-data"; export interface DrawImageOptions { /** * The Shader to use for rendering */ shader: Shader; /** * Global uniforms to p...
import type * as PG from "pg"; import { ConnectionOptions } from "typeorm"; import * as TypeormDriver from "typeorm/driver/postgres/PostgresDriver"; import { DataTypeDefaults } from "typeorm/driver/types/DataTypeDefaults"; import * as TomgUtils from "../Utils"; import AbstractDriver from "./AbstractDriver"; import ICon...
import Joi from 'joi'; import { IEmailValidator } from '@presentation/validations/protocols'; export class JoiEmailValidatorAdapter implements IEmailValidator { isValid(data: IEmailValidator.Input): IEmailValidator.Output { const { email } = data; const schema = Joi.string().email(); const result = sc...
import { BigNumber, Contract } from 'ethers/lib/ethers' import { formatUnits } from 'ethers/lib/utils' import { erc20ABI } from '../../constants' import { getProvider } from '../providers' import { Unit } from '../../types' export type FetchTokenArgs = { /** Address of ERC-20 token */ address: string /** Chain ...
import fp from 'lodash/fp' import { useNumberInput, Box, Text, Input, Button, HStack, } from '@chakra-ui/react' import { useAppSelector, useAppDispatch } from '../store/hooks' type PropTypes = { productId: number } export const AddCartBlock = ({ productId }: PropTypes) => { const cart = useAppSelecto...
import { Toolbox } from '../../lib/emoji-drawing' import { atom } from 'recoil' export const toolboxAtom = atom({ key: 'toolbox', default: Toolbox.default, })
import { EntityRepository, Repository } from 'typeorm'; import { ProductImage } from './productImage.entity'; @EntityRepository(ProductImage) export class ProductImageRepository extends Repository<ProductImage> { async createImage(data): Promise<void> { const productImage = new ProductImage(); Prod...
/* * Public API Surface of ngx-hover-preload */ export { LinkDirective as ɵɵLinkDirective } from './lib/link.directive'; export { HoverPreloadStrategy } from './lib/hover-preload.strategy'; export { HoverPreloadModule } from './lib/hover-preload.module';
import React, { FC } from 'react'; import { connect } from 'react-redux'; import { useInRouterContext } from 'react-router-dom'; import { AppModuleRootState, AppModuleState } from '../../../types'; const OwnersPage: FC<any> = ({}: AppModuleState) => { const inRouterContext = useInRouterContext(); console.log(`Crea...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { assert } from 'chai'; import * as path from 'path'; import { anything, deepEqual, instance, mock, verify, when } from 'ts-mockito'; import { CancellationTokenSource } from 'vscode'; import { CancellationError } fro...
import { Component, OnInit } from "@angular/core"; import { AuthService } from '../../services/auth.service'; declare var $: any; @Component({ selector: "app-repairs", templateUrl: "./repairs.component.html", styleUrls: ["./repairs.component.scss"], }) export class RepairsComponent implements OnInit { token ...
import {Component, Input, OnInit} from "@angular/core"; import {Shift} from "../../_models/shift"; import {ShiftService} from "../../_services/shift.service"; import {UserService} from "../../_services/user.service"; import {User} from "../../_models/user"; //todo: possibly fix the way percentage of workers handles s...
/** * Copyright (c) 2020, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file 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.o...
import React from 'react'; import Cleave from 'cleave.js'; import Input, { FloatingLabelInputProps } from './Input'; import './FloatingLabelInput.style.scss'; export type InputPhoneNumberRegionCode = 'thousand' | 'lakh' | 'wan' | 'none'; export interface InputPhoneNumberProps extends FloatingLabelInputProps { regio...
import { fn } from './not-found-js' console.log(fn(1))
import {NfaDeclaration} from "../nfa-declaration"; export function countIncomingEdges ( nfa : NfaDeclaration, state : string ) : number { let result : number = 0; for (const t of nfa.transitions) { for (const dstStateSet of t.dstStateSets) { for (const dstState of dstStateSet) { ...
export import ACM = require('./acm'); export import APIGateway = require('./apigateway'); export import ApplicationAutoScaling = require('./applicationautoscaling'); export import AppStream = require('./appstream'); export import AutoScaling = require('./autoscaling'); export import Batch = require('./batch'); export i...
import chalk from 'chalk'; import { BitError } from '@teambit/bit-error'; export default class InvalidBitId extends BitError { id: string; constructor(id: string) { super(`error: component ID "${chalk.bold(id)}" is invalid, please use the following format: [scope]/<name>`); } }
// *** 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"; /** * S...
import * as users from "./data/users"; import { linq } from "../"; import { expect } from "chai"; import { Query, AsyncQuery } from "iterable-query"; import { toArray, toArrayAsync } from "iterable-query/fn"; import { getCompilationResult } from "../linq"; // import * as books from "./data/books"; // import * as number...
declare module '@fay-react/node-device' { class KeystoreNodeModule { constructor(nativeEvent: NativeEvent); [key: string]: any; } class NativeEvent { [key: string]: any; } }
import { Area, Breadcrumb, Dish, Time, Keyword, Menu, News, PriceRange, Shop, Post } from './types' import Enum from './enum' export { Area, Breadcrumb, Dish, Time, Keyword, Menu, News, PriceRange, Shop, Post, Enum }
// Type definitions for Umzug v2.1.0 // Project: https://github.com/sequelize/umzug // Definitions by: Ivan Drinchev <https://github.com/drinchev> // Margus Lamp <https://github.com/mlamp> // Troy McKinnon <https://github.com/trodi> // Definitions: https://github.com/DefinitelyTyped/Defi...
import * as CSS from 'csstype' import { style, compose } from '../style' import { getPercent } from './units' import { display, DisplayProps } from './layout' import { SystemProp, ITheme, Theme } from '../types' type AlignItemsProp<T extends ITheme> = SystemProp<CSS.Property.AlignItems, T> export interface AlignItemsP...
import { Mat } from './Mat'; import { DataTypes } from './HalInterface'; import { CovarFlags, NDArray } from './Core'; import { MatVector, Point, Scalar } from '../opencv'; import { SortFlags } from './Utils'; declare module CoreArray { enum DecompTypes { DECOMP_LU = 0, DECOMP_SVD = 1, DECO...
import { Module } from '@nestjs/common'; import { ConfigurationService } from './configuration.service'; import { ConfigurationController } from './configuration.controller'; import { SharedModule } from 'src/shared/shared.module'; @Module({ providers: [ConfigurationService], controllers: [ConfigurationController]...
import React from 'react' import { Text } from '@island.is/island-ui/core' import { ApplicationState, getState, months, } from '@island.is/financial-aid/shared' import format from 'date-fns/format' interface Props { state: ApplicationState } const Approved = ({ state }: Props) => { const currentMonth = par...
import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { TabsetConfig, TabsModule } from 'ngx-bootstrap/tabs'; import { FeatureFlagModule } from '../../../projects/ngx-feature-flag/src/lib/feature-flag.module'; import { DemoCompone...
import { buildSchema, SchemaValues } from '@sprucelabs/schema' import { eventResponseUtil } from '@sprucelabs/spruce-event-utils' import AbstractAction from '../../AbstractAction' import { FeatureActionResponse } from '../../features.types' const optionsSchema = buildSchema({ id: 'loginAction', description: 'Authe...
import {StyleSheet} from "react-native" const styles = StyleSheet.create({ Image: { height: 80, aspectRatio: 16 / 9, resizeMode: 'cover', borderRadius: 3 }, plot: {color:'#757575'}, row: { flexDirection: 'row', alignItems: 'center', justifyContent:...
<TS language="kk_KZ" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>Жаңа адрес енгізу</translation> </message> <message> <source>&amp;New</source> <translation>Жаңа</translation> </message> <messa...
import React from 'react'; const TwoDotsIcon = () => { return ( <svg width="14" height="6" viewBox="0 0 14 6" fill="none" xmlns="http://www.w3.org/2000/svg" > <circle cx="3" cy="3" r="3" fill="#A235FF" /> <circle cx="11" cy="3" r="3" fill="#A235FF" /> </svg> ); }; export default TwoDotsIc...
/** * @module Server - Players * @category Server */ "use strict"; import Server from "@server"; export type Requirements = { user_id?: number; server_id?: number; license?: string; }; export type Data = { user_id?: number; server_id?: number; license?: string; updated_at?: number; ...
import { Utility } from '../../common'; import { IEventHandler, IStorageHandler, IBaasicApp, TYPES as coreTYPES } from '../contracts'; import { injectable, inject } from "inversify"; declare var $: any; let utility = new Utility(); @injectable() export class BrowserEventHandler implements IEventHandler { protected ...
export { BottomSheetHandle, BottomSheetHandleProps } from './Handle';
import {async, TestBed} from '@angular/core/testing'; import {RouterTestingModule} from "@angular/router/testing"; import {LoginComponent} from "./login.component"; import {FormsModule} from "@angular/forms"; import {MatButton} from "@angular/material/button"; import {MatCard, MatCardActions, MatCardContent, MatCardHea...
import { max_curry_level } from './$curriedFunctions'; import { create_composition_declarations } from './utils/create-composition-declarations'; export default create_composition_declarations( 'pipeP', 'pipe', max_curry_level, 6, x => x, (x, i) => (i === 0 ? `PromiseLike<${x}>` : `PromiseLike<${x}> | ${x}...
import { RouteRecordRaw } from 'vue-router' import Settings from '@/modules/settings/pages/PageSettings.vue' export const settingsRoutes: Array<RouteRecordRaw> = [ { path: '/settings', name: 'Settings', component: Settings } ]
/* eslint-disable prettier/prettier */ import { ApiProperty } from '@nestjs/swagger'; import { IsUUID } from 'class-validator'; import { User } from 'src/users/entities/user.entity'; import { attchmentType } from '../entities/attachment.entity'; import { Task } from '../entities/task.entity'; export class CreatedAtta...
/** * @license * Copyright 2020 Google LLC. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
import { getterTree, mutationTree, actionTree } from 'typed-vuex' import { Member } from '~/simply/types' import { EVENT } from '~/simply/events' import { accessor } from '~/store' export const namespaced = true interface Members { [id: string]: Member } export const state = () => ({ id: '', members: {} as Me...
import { AxiosRequestConfig, AxiosPromise, AxiosResponse } from './types' import { parseHeaders } from './helpers/header' import { rejects } from 'assert' /*** * 实现获取响应数据逻辑 * 1.首先我们要在 xhr 函数添加 onreadystatechange 事件处理函数,并且让 xhr 函数返回的是 AxiosPromise 类型 * */ export default function xhr(config: AxiosRequestConf...