text
stringlengths
10
953k
import { HttpClient } from '@angular/common/http'; import { Component, OnInit, AfterContentInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { Observable } from 'rxjs'; import { switchMap, debounceTime } from 'rxjs/operators'; import { distinctUntilChanged } from 'rxjs/operat...
export { default as CheckButton } from "./CheckButton";
import { LineItems_topic as Topic } from '__generated__/LineItems_topic.graphql'; declare type Props = { topic: Topic; }; declare const _default: import("react-relay").Container<Props>; export default _default;
import { Component, OnInit, EventEmitter, ViewChild, Inject, OnDestroy } from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, ViewEncapsulation } from '@angular/core'; import { DisplayGrid, CompactType, GridsterConfig, GridsterItem, GridsterItemComponent, GridsterPush, GridType, GridsterComponentI...
import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { push } from 'connected-react-router'; import { call, put } from '@redux-saga/core/effects'; import { all, fork, takeLeading, takeEvery, SagaReturnType, } from '@redux-saga/core/effects'; import { SnackbarSlice, LoadingSlice } from '@smart...
import { InputType, Field, ID } from '@nestjs/graphql'; // Input to find for ID @InputType() export class IdInput { @Field(() => ID) _id: string; }
import { ObservableMap, IObservableArray, IKeyValueMap } from "../internal"; export declare const OBFUSCATED_ERROR = "An invariant failed, however the error is obfuscated because this is an production build."; export declare const EMPTY_ARRAY: never[]; export declare const EMPTY_OBJECT: {}; export declare function getG...
import { HttpException, HttpStatus, Injectable } from '@nestjs/common'; import { InjectModel } from '@nestjs/sequelize'; import { Midia } from 'src/midia/entities/midia.entity'; import { CreateAtividadeDto } from './dto/create-atividade.dto'; import { UpdateAtividadeDto } from './dto/update-atividade.dto'; import { At...
export const map = <T, U>(f: (val: T) => U) => (iterable: Iterable<T>) => iterableMap(f, iterable); function* iterableMap<T, U>( f: (val: T) => U, iterable: Iterable<T>, ): Iterable<U> { for (const val of iterable) { yield f(val); } }
import { connect, mapReadPretty, mapProps } from '@formily-x/react' import { Input as NextInput } from '@alifd/next' import { InputProps, TextAreaProps } from '@alifd/next/lib/input' import { PreviewText } from '../preview-text' import { mapSize, mapStatus } from '../__builtins__' type ComposedInput = React.FC<InputPr...
/* * @Author : Kevin Jobs * @Date : 2022-01-21 10:34:25 * @LastEditTime : 2022-01-21 16:57:37 * @lastEditors : Kevin Jobs * @FilePath : \Horen\packages\horen\main\app.ts * @Description : */ import { app, BrowserWindow } from 'electron'; import { createWindow } from './create'; export interf...
let lastKey = 0; /** * Generate a random key * * @return {string} */ function generateKey() { lastKey += 1; const str = lastKey.toString(16); return "00000".slice(str.length) + str; } export default generateKey;
import { Component, OnInit } from '@angular/core'; import { AuthService } from 'app/services/auth.service'; import { PersonalDataService } from 'app/services/personal-data.service'; import { Router } from '@angular/router'; import { RestService } from 'app/service/rest.service'; import { HttpErrorResponse } from '@angu...
import { UIMaterial } from "./UIMaterial"; import { ShaderChunk } from "./chunks/ShaderChunk"; import { UIScene } from "../ui/UIScene"; export class UIShaderMaterial extends UIMaterial { // image map constructor( config: object = {}) { super(config) } shaderSource(scene: UIScene) { let vert = ` ...
import { Store } from '../table' interface TableHeaderProps { fixed: string store: Store border: boolean defaultSort: any } export { TableHeaderProps }
version https://git-lfs.github.com/spec/v1 oid sha256:dca7bb9a774d486b24987c5aa5c65c555cd8c9ece4d9457f9f43680c52262fe0 size 1115216
import { Container } from "@material-ui/core"; import React from "react"; import { EncodedLink, EncodedLinkHandler } from "../../types/dataExchangeTypes"; import useLocalStorage from "../../utils/useLocalStorage"; import RenderMainCard from "./RenderMainCard"; import RenderLinksCard from "./RenderLinksCard"; import { ...
import classNames from 'classnames'; import { ipcRenderer } from 'electron'; import * as React from 'react'; import { i18n } from '../../common/i18n-preload'; const whiteColorRegExp = new RegExp(/^(?:white|#fff(?:fff)?|rgba?\(\s*255\s*,\s*255\s*,\s*255\s*(?:,\s*1\s*)?\))$/i); interface IState { title: string; ...
export { default } from './lib/icons/ManOutlined';
<TS language="ru" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Right-click to edit address or label</source> <translation>Кликните правой кнопкой для редактирования адреса или метки</translation> </message> <message> <source>Create a new address</source...
export type Message = | TextMessage | ImageMessage | VideoMessage | AudioMessage | LocationMessage | StickerMessage | ImageMapMessage | TemplateMessage | FlexMessage export type MessageCommon = { quickReply?: QuickReply sender?: Sender } export type TextMessage = MessageCommon & { type: 'text'...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.0" language="en"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About TyroCoin</source> <translation>About TyroCoin</translation> </message> <messa...
/** * @license * Copyright 2017 Google LLC * * 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 ...
import { darkBg, lightBg } from './svg'; export const styles = ` body { all: unset; background-color: unset; margin: 0; } .showcase { all:unset; box-sizing: border-box; font-family: 'Overpass'; font-size: 16px; font-style: normal; font-weight: unset; } #showcase-wrapper ...
import React from 'react'; import { IconProps } from '../Icon.interface'; import classNames from '../../utils/classNames'; import styles from '../Icon.module.css'; export const IconRefresh = ({ size = 's', className = '', style = {}, ...rest }: IconProps) => ( <svg className={classNames(styles.icon, styles[size...
import { DynamoDB } from 'aws-sdk'; import { Context } from 'aws-lambda'; import Hashtag from "./Hashtag"; import HashtagCreateRequest from "./HashtagCreateRequest"; import HashtagResponse from "./HashtagResponse"; import { ErrorResponse } from './ErrorResponse'; export const handler = async (event: HashtagCreateReque...
import { Session } from "./session.js" import { SessionStorage } from "./session_storage.js" import { CustomSessionStorage } from "./storage/custom.js" import { MemorySessionStorage } from "./storage/memory.js" const ShopifySession = { Session, MemorySessionStorage, CustomSessionStorage, } export default Shopif...
import Controller from '@ember/controller'; import { controller } from '@ember-decorators/controller'; declare module '@ember/controller' { interface Registry { ['x-bar']: Controller; } } export class XFoo extends Controller { @controller('x-bar') barController!: Controller; // $ExpectError @controller(...
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *---------------------------------------------------------------...
export const knapsackRecursive = ( profits: Array<number>, weights: Array<number>, capacity: number, currentIndex = profits.length ): number => { if (capacity === 0 || currentIndex === 0) return 0; if (weights[currentIndex - 1] > capacity) { return knapsackRecursive(profits, weights, capacity, currentI...
import * as React from 'react'; import {useHistory} from 'react-router-dom'; import styled from 'styled-components/macro'; import navBarImage from '../images/nav-logo-icon.png'; import navTitleImage from '../images/nav-title.png'; import {VersionNumber} from '../nav/VersionNumber'; import {SearchDialog} from '../searc...
export function qrNotDetected() { const error = new Error() error.name = 'QR_NOT_DETECTED' return error }
import { WIcon } from './wicon.model'; export declare const wiconDocumentSendError: WIcon;
import { MongoMemoryServer } from "mongodb-memory-server"; import mongoose from "mongoose"; import { app } from "../app"; import request from "supertest"; import jwt from "jsonwebtoken"; declare global { namespace NodeJS { interface Global { signin(): string[]; } } } let mongo: any; beforeAll(async ...
import { provideRouter, RouterConfig } from '@angular/router'; import { DashboardComponent } from './dashboard.component'; import { HeroesComponent } from './heroes.component'; import { HeroDetailComponent } from './hero-detail.component'; const routes: RouterConfig = [ { path: '', redirectTo: '/dashboard'...
import {h, joinArrayOfH, parseSelector} from '../src'; const tagWithIdAndClasses = 'div#myCoolId.myClass.myOtherClass'; const tagWithClass = 'span.text-muted'; const tagWithoutTag = '#noTag'; const tagWithId = 'div#withId'; describe('Test selector parser TAGS', () => { test('Should detect tags correctly', () => { ...
import chalk from "chalk"; import winston from "winston"; import stripAnsi from "strip-ansi"; const jsonReplacer = (k, v) => { if (v.message) { v.message = stripAnsi(v.message); } return v; }; export const logger = winston.createLogger({ level: "info", format: winston.format.json({ replacer: jsonReplace...
/** @jsxImportSource @emotion/react */ import React, { useEffect, useState } from 'react'; import { useTheme } from '@emotion/react'; import { AvatarStyles } from './styles'; type IconType = React.ElementType | React.ComponentType; type Color = string | 'transparent'; interface IAvatarProps { stringifyLetter?: b...
import { Component, OnInit } from '@angular/core'; import {Router} from '@angular/router'; @Component({ selector: 'app-sources', templateUrl: './sources.component.html', styleUrls: ['./sources.component.css'] }) export class SourcesComponent implements OnInit { constructor(private _router: Router) { } ngOn...
import { FastifyInstance } from "fastify"; import { appConfig } from '../../core/config'; import * as fs from 'fs'; import * as path from 'path'; const util = require('util') const fs_writeFile = util.promisify(fs.writeFile) let requestSequence = 0; const GIT_HEADER_EVENT: string = "X-GitHub-Event"; const GIT_EVENT_...
import { BadRequestException, Injectable } from '@nestjs/common'; import { InjectRepository } from '@nestjs/typeorm'; import { Repository } from 'typeorm'; import { CreateMusicDto } from './dto/create-music.dto'; import { UpdateMusicDto } from './dto/update-music.dto'; import { Music } from './entities/music.entity'; ...
import color from 'color'; import styled from 'styled-components'; interface SectionProps { title: string; children: React.ReactNode; info?: number; } function Section({title, children, info}: SectionProps) { return ( <Wrapper> <Title> {info && <Info>{info}</Info>} {title} </Ti...
import { Component, ViewChild, OnInit, EventEmitter, Output, Input, OnChanges, AfterViewInit } from '@angular/core'; import { NgbModal, NgbModalRef } from '@ng-bootstrap/ng-bootstrap'; import { Router } from '@angular/router'; import { SelectionModel } from '@angular/cdk/collections'; import { MatTableDataSource } from...
import { Marbles } from '@marblejs/core/dist/+internal/testing'; import { createHttpRequest, createHttpResponse } from '../+internal/testing.util'; import { defaultError$ } from './http.error.effect'; import { HttpError } from './http.error.model'; describe('defaultError$', () => { const request = createHttpRequest(...
import { useQuery, UseQueryOptions } from 'react-query'; import { usePublicClient } from '@hooks/useAxios'; import { Author, AuthorsResponseData } from '@typings/common'; import { QUERY_KEYS } from '@utils/constants'; export const useRetrieveAllAuthors = (options?: UseQueryOptions<Author[]> | undefined) => { const ...
/* * 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 { Controller, Get } from '@nestjs/common'; import { MessagePattern } from '@nestjs/microservices'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) {} @MessagePattern('greeting') getHello(name: string): string { ...
import React from "react"; import { Helmet } from "react-helmet"; import { useStaticQuery, graphql } from "gatsby"; import { buildMetadata, getSocialImageUrl } from "./seo-helper"; const Seo = ({ description, lang, meta, title, image }: SeoProperties) => { const { site, allFile } = useStaticQuery( graphql` ...
const electron = (window as any).require('electron'); const { ipcRenderer, remote } = electron; const { getGlobal, shell } = remote; export { shell, remote, electron, getGlobal, ipcRenderer, };
export function isNotNull<T>(obj: T | null | undefined): obj is T { return obj != null; } export function typedKeys<T>(obj: T): (keyof T)[] { return Object.keys(obj) as (keyof T)[]; } export function nonEmptyArray<T, R>(array: T[], alternative: R): T[] | R; export function nonEmptyArray<T, R>( array: readonly T...
// Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional interface firebaseConfig { apiKey: string; authDomain: string; projectId: string; storageBucket: string; messagingSenderId: string; appId: string; measurementId: string; } interface environment { produc...
import {TestBed} from '@angular/core/testing'; import {NgbModalBackdrop} from './modal-backdrop'; describe('ngb-modal-backdrop', () => { beforeEach(() => { TestBed.configureTestingModule({declarations: [NgbModalBackdrop]}); }); it('should render backdrop with required CSS classes', () => { const fixture = T...
/* tslint:disable-next-line:max-line-length */ import { EventHandler, L10n, isNullOrUndefined, extend, classList, addClass, removeClass, Browser, getValue, setValue, isBlazor } from '@syncfusion/ej2-base'; import { parentsUntil, getUid, appendChildren, getDatePredicate, getObject, extendObjWithFn, eventPromise, setChec...
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { OpentimeonlevelreportComponent } from './opentimeonlevelreport.component'; describe('OpentimeonlevelreportComponent', () => { let component: OpentimeonlevelreportComponent; let fixture: ComponentFixture<OpentimeonlevelreportCompone...
import express, { Express, Request, RequestHandler } from 'express'; import * as errors from './errors'; import ConferenceManager from './lib/conference/conference-manager'; import Logger from './utils/logger'; import jwt from 'express-jwt'; import config from './config'; import cors from 'cors'; const logger = new Lo...
import React from 'react' import { useGetLatest, getFirstDefined, getFilterMethod, functionalUpdate, shouldAutoRemoveFilter, useMountedLayoutEffect, } from '../utils' import { withGlobalFilter as name, withColumnVisibility, withColumnFilters, } from '../Constants' import * as filterTypes from '../f...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; const modules = []; /** * Module for Themes */ @NgModule({ declarations: modules, imports: [CommonModule], exports: modules, }) export class ThemesModule {}
import {expect} from "chai"; import {UnknowFilterError} from "../../../src/mvc"; describe("UnknowFilterError", () => { before(() => { this.errorInstance = new UnknowFilterError(class Target {}); }); after(() => { delete this.errorInstance; }); it("should have a message", () => { expect(this.err...
import { getModelToken } from '@nestjs/mongoose'; import { Test, TestingModule } from '@nestjs/testing'; import { Model, Query } from 'mongoose'; import { Cart, CartDocument } from 'src/checkout/cart.schema'; import { CartService } from './cart.service'; import { Item } from 'src/checkout/types/item.type'; import { cre...
import { Operator } from '../Operator'; import { Subscriber } from '../Subscriber'; import { Subscription } from '../Subscription'; import { async } from '../scheduler/async'; import { Observable } from '../Observable'; import { ThrottleConfig, defaultThrottleConfig } from './throttle'; import { MonoTypeOperatorFunctio...
import expect from "expect"; import { ASTNode, ASTNodeConstructor } from "../../../src"; export function verify<T extends ASTNode>( node: T, type: ASTNodeConstructor<T>, properties: Partial<T> ): void { expect(node).toBeInstanceOf(type); for (const p in properties) { expect(node[p]).toEqua...
export * from './drawer.module';
import { SvgIconProps } from './internal/SvgIcon'; export declare const Export: (props: SvgIconProps) => JSX.Element;
/** * @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 */ /// <amd-module name="@angular/compiler-cli/src/ngcc/src/packages/build_marker" /> import { EntryPoint, EntryPointFor...
/* * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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...
const MATHJAX_CONFIG = { Macros: { A: '{\\mathbb{A}}', B: '{\\mathbb{B}}', C: '{\\mathbb{C}}', D: '{\\mathbb{D}}', E: '{\\mathbb{E}}', F: '{\\mathbb{F}}', G: '{\\mathbb{G}}', H: '{\\mathbb{H}}', I: '{\\mathbb{I}}', J: '{\\mathbb{J}}', K: '{\\mathbb{K}}', L: '{\\mathbb{L...
import connection, { IConnection } from './connection'; import MediaStore from './MediaStore'; import MomentsStore from './MomentsStore'; class Store { db: IConnection; media: MediaStore; moments: MomentsStore; constructor(dbConnection) { this.db = dbConnection; this.media = new Med...
import { Component, Input, OnInit } from '@angular/core'; import { FormGroup } from '@angular/forms'; import { Field } from '../../models/field.interface'; import { FieldConfig } from '../../models/field-config.interface'; @Component({ selector: 'form-select', styleUrls: ['form-select.component.scss'], template...
export const environment = { production: true, apiUrl: 'http://localhost:3000/api', clientId: '', };
import { Component, OnInit } from '@angular/core'; import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal'; @Component({ selector: 'app-config-valid-modal', templateUrl: './config-valid-modal.component.html', styleUrls: ['./config-valid-modal.component.css'] }) export class ConfigValidModalComponent imp...
import { newSpecPage } from '@stencil/core/testing'; import { MedTabButton } from '../med-tab-button'; describe('med-tab-button', () => { it('renders', async () => { const page = await newSpecPage({ components: [MedTabButton], html: `<med-tab-button></med-tab-button>`, }); expect(page.root).t...
import { ComponentFixture, TestBed, waitForAsync } from '@angular/core/testing'; import { IonicModule } from '@ionic/angular'; import { CardDetailPage } from './card-detail.page'; describe('CardDetailPage', () => { let component: CardDetailPage; let fixture: ComponentFixture<CardDetailPage>; beforeEach(waitFor...
declare module '@modern-js/polyfill-lib' { export const getPolyfillString: (options: { uaString: string; minify: boolean; features: Record<string, { flags: string[] }>; }) => Promise<string>; }
import { simpleParser } from "mailparser"; import { createTransport } from "nodemailer"; import { SMTPServer } from "smtp-server"; const mailer = createTransport({ service: 'gmail', auth: { user: process.env.MAIL_ID, pass: process.env.MAIL_PASSWORD } }); const smtp_server = new SMTPServer(...
import { Subject } from 'rxjs'; import { Recks } from '../../src/index'; import { createTestRoot } from './helpers'; describe('Array', () => { let root = createTestRoot(); test('Empty', () => { Recks.render([], root.el); expect(root.el.innerHTML).toBe(''); }); test('Single element', (...
import { LikeRepoEvent } from './like-repo.event'; import { IEventHandler, EventsHandler } from '@nestjs/cqrs'; @EventsHandler(LikeRepoEvent) export class LikeRepoEventHandler implements IEventHandler<LikeRepoEvent> { constructor() {} handle(event: LikeRepoEvent) { // logic console.log(event.repository); ...
import { Component, OnInit, Inject } from '@angular/core'; import { MAT_SNACK_BAR_DATA } from '@angular/material'; @Component({ selector: 'app-error-snack-bar', templateUrl: './error-snack-bar.component.html', styleUrls: ['./error-snack-bar.component.scss'] }) export class ErrorSnackBarComponent { constructor...
import firebase from "firebase/app"; import "firebase/auth"; const firebaseConfig = { apiKey: "AIzaSyBcbj0nZfpR9vfz7XtCxTNWFASsF3mSfeY", authDomain: "inventory-of-equipment.firebaseapp.com", databaseURL: "https://inventory-of-equipment.firebaseio.com", projectId: "inventory-of-equipment", storageBucket: "inv...
import * as React from 'react'; import { Checkbox, CheckboxButtonProps } from './types'; /** * Creates a checkbox from button. On click event the callback function onChange is fired with the corresponding * value (if it was selected then with a false otherwise a true value is passed to the callback.) * Using fa-che...
import cxapi = require('@aws-cdk/cx-api'); import aws = require('aws-sdk'); import colors = require('colors/safe'); import uuid = require('uuid'); import YAML = require('yamljs'); import { prepareAssets } from '../assets'; import { debug, error } from '../logging'; import { Mode } from './aws-auth/credentials'; import ...
import { Component } from "@angular/core"; @Component({ selector: "lsd-members", templateUrl: "members.component.html", styleUrls: ["members.component.sass"] }) export class MembersComponent {}
/** * * * OpenAPI spec version: 20190801 * * * NOTE: This class is auto generated by OracleSDKGenerator. * Do not edit the class manually. * * Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as sho...
export { appInitialization } from './appInitialization'; export { authentication } from './authentication'; export { FrameContexts, HostClientType, TaskModuleDimension, TeamType, UserTeamRole, ChannelType } from './constants'; export { Context, DeepLinkParameters, ErrorCode, FrameContext, LoadContext, SdkEr...
import { Time } from "../Time"; import { InputHandler } from "./InputHandler"; import { MouseInputEvent } from "./MouseInputEvent"; import { MouseWheelInputEvent } from "./MouseWheelInputEvent"; export class MouseInputHandler extends InputHandler { onEvent(time: Time, event: MouseInputEvent | MouseWheelInputEvent) {...
import React from 'react'; import { useHistory } from 'react-router-dom'; import { Headline, Subtitle, Wrapper } from './Page.styles'; import { Background } from './components/Background/Background'; import { SignUpForm } from './components/Forms/SignUpForm'; import { useMst } from '../../models/Root'; import { SignUpB...
import { Component, Input } from '@angular/core'; @Component({ selector: 'status-indicator', template: ` <i [class.fa-pulse]="pulse"> <i *ngIf="!value" class="fa fa-circle" style="color:#ccc"></i> <i *ngIf="value == 'success'" class="fa fa-circle" style="color:#4CAF50"></i> ...
import React, { useState } from 'react' import { View, TouchableOpacity } from 'react-native' import { Text, Icon } from '@ui-kitten/components' import { useNavigation } from '@react-navigation/native' import { useStyles } from '@berty-tech/styles' import { ProceduralCircleAvatar } from '../shared-components/Procedural...
/** * REPL * * Documented in logs/repl/README.md * https://github.com/Zarel/Pokemon-Showdown/blob/master/logs/repl/README.md * * @author kota * @license MIT */ import * as fs from 'fs'; import * as net from 'net'; import * as path from 'path'; import * as repl from 'repl'; export const Repl = new class { /**...
import { Schema, model, Document } from 'mongoose'; import User from '@database/repository/user/UserModel'; export const DOCUMENT_NAME = 'Keystore'; export const COLLECTION_NAME = 'keystores'; export default interface Keystore extends Document { client: User; primaryKey: string; secondaryKey: string; status?:...
import React from 'react'; import { ReactProps } from './ReactProps'; export declare const createReactComponent: <PropType, ElementType>(tagName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<import("./utils").IonicReactExternalProps<PropType & ReactProps, ElementType>> & React.RefAttributes<ElementT...
/* * Copyright 2020 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 ap...
import {XYGlyph, XYGlyphView, XYGlyphData} from "./xy_glyph" import {PointGeometry, SpanGeometry, RectGeometry, PolyGeometry} from "core/geometry" import {LineVector, FillVector, HatchVector} from "core/property_mixins" import * as visuals from "core/visuals" import {Rect, Indices, ScreenArray, to_screen} from "core/ty...
import { Subscription } from '@unimodules/core'; import { PermissionResponse, PermissionStatus } from 'unimodules-permissions-interface'; import { AVPlaybackStatus, AVPlaybackStatusToSet } from '../AV'; import { Sound } from './Sound'; export declare type RecordingOptions = { android: { extension: string; ...
import {Request, Response} from "express"; import {User} from "../../models"; function get(req: Request, res: Response) { User.findAll({ where: { isAdmin: false, }, order: [["lastname", "ASC"], ["firstname", "ASC"]], }).then((users) => { res.render("admin/admin-stud...
import { computed, defineComponent, ref, PropType, toRefs, ComponentPublicInstance, toRef, } from 'vue'; import ArcoInput from '../input'; import Trigger from '../trigger'; import { getPrefixCls } from '../_utils/global-config'; import { Option, OptionInfo, FilterOption } from '../select/interface'; impor...
import { PlusOutlined } from '@ant-design/icons'; import { Button, Input, Modal, Select, Checkbox, Divider, Typography } from 'antd'; import React, { FC, ReactElement, SyntheticEvent, useContext, useEffect, useState } from 'react'; import { AddressInput, Blockie, EtherInput } from '~~/eth-components/ant'; import { use...
import chalk from 'chalk'; import { dedent } from 'ts-dedent'; import { info, success } from '../../components/icons'; export default (scriptName: string) => dedent(chalk` ${success} {bold Added script '${scriptName}' to package.json} You can now run it here or in CI with 'npm run ${scriptName}' or 'yarn ${...
import React from 'react'; import { Divider } from 'm78/layout'; import { Button } from 'm78/button'; import { ContextMenu, ContextMenuItem } from 'm78/context-menu'; import { SizeEnum } from 'm78/common'; const TipsDemo = () => { return ( <div> <ContextMenu content={ <div> <C...
import { Body, Controller, Delete, Get, Param, Patch, Post, Query, UseGuards, UsePipes, ValidationPipe } from '@nestjs/common'; import { AuthGuard } from '@nestjs/passport'; import { filter } from 'rxjs'; import { GetUser } from '../auth/get-user.decorator'; import { User } from '../auth/user.entity'; import { CreateTa...
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { ReactiveFormsModule, FormsModule } from '@angular/forms'; import { RouterModule } from '@angular/router'; // delon import { AlainThemeModule } from '@delon/theme'; import { DelonACLModule } from '@delon/acl'; import { Del...