text
stringlengths
10
953k
describe('react-shared-components: DeleteLineAccountButton component', () => { beforeEach(() => cy.visit('/iframe.html?id=deletelineaccountbutton--primary')); it('should render the component', () => { cy.get('#root svg').should('exist'); }); });
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { environment } from '../../../environments/environment'; import { AuthenticationService } from '../../service/auth/authentication.service'; ...
import React, { useState, useMemo } from 'react' import { Form } from 'antd' import type { IControlSchema, UpdateReasonField } from '../../../interface' import { makeUpdaterByDependencies, makeFormItemControlledProps, isEmptyParamValue } from './util' interface CalculatedData { hidden: boolean disabled: boolean ...
import { Box, Button, InputAdornment, InputLabel, OutlinedInput, Typography } from "@material-ui/core"; import { makeStyles } from "@material-ui/core/styles"; import ExpandMoreIcon from "@material-ui/icons/ExpandMore"; import { CurrencyLogo } from "app/components"; import CurrencyDialog from "app/components/CurrencyDia...
module Main.Controller { 'use strict'; var controllerId = 'RegisterController'; export class RegisterController { static $inject = [ 'dataContext', 'locationHistory', 'logger', 'serviceAppUrl', '$location', '$rootScope', '$scope' ]; constructor(dataContext: any, ...
import IExportHandler from './interfaces/IExportHandler'; export default class DataExportServerController { public static getInstance() { if (!DataExportServerController.instance) { DataExportServerController.instance = new DataExportServerController(); } return DataExportServe...
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> <TS version="2.1" language="pt_BR"> <context> <name>MainUI</name> <message> <location filename="../mainUI.ui" line="14"/> <location filename="../mainUI.cpp" line="286"/> <source>Media Player</source> <translation>Media Player</...
require('../setup'); import { expect } from 'chai'; import { TapeDeck } from 'mocha-tape-deck'; const { LokaliseApi } = require('../../src/lokalise/lokalise'); describe('Translations', function () { const deck = new TapeDeck('./test/cassettes'); const lokaliseApi = new LokaliseApi({apiKey: process.env.API_KEY}); ...
/** * Copyright (c) 2020-present, Goldman Sachs * * 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 l...
/** * @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 */ /* * This is necessary for Chrome and Chrome mobile, to enable * things like redefining `createdCallback` on an ele...
<TS language="si" version="2.1"> <context> <name>AddressBookPage</name> <message> <source>Create a new address</source> <translation>නව ලිපිනයක් සාදන්න</translation> </message> <message> <source>Choose the address to send coins to</source> <translation>කාසි යැවිය යුතු ලිප...
/** * Copyright (c) Open Formation GmbH. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ /** * @author Wilhelm Behncke <wilhelm.behncke@openformation.io> * */ import { useMemo } from "react"; export const useService = <S, D e...
import React from "react"; import { Container, Link, Box, Text, Flex, Badge, Center, Heading, Divider, } from "@chakra-ui/layout"; import { Button } from "@chakra-ui/button"; import { Link as IconLink } from "react-feather"; import { motion } from "framer-motion"; import { Cell } from "react-table"; i...
import "reflect-metadata"; import {ConnectionOptions, createConnection, EntitySchema} from "../../src"; import {Post} from "./entity/Post"; import {PostDetails} from "./entity/PostDetails"; import {Category} from "./entity/Category"; import {Image} from "./entity/Image"; // NOTE: this example is not working yet, only ...
import React from "react" import { QueryClient, QueryClientProvider } from "react-query" import { RecoilRoot } from "recoil" import { Router } from "./Router" import { PluginPositionComponents } from "./components/common/PluginPositionComponents" import { RecoilApplier } from "./components/global/RecoilApplier" import ...
import * as React from 'react'; import styled, { css } from 'styled-components'; import { MouseEventHandler } from 'react'; import { useTheme } from '../../hooks'; import { Typography } from '../typography/Typography'; import { GlobalTheme } from '../../theme/types'; export interface PanelProps { /** Content to s...
import { BaseLink } from "../../types" import { Metadata } from '../../metadata' import { AddResult, CID } from "../../../ipfs" import { BareNameFilter, PrivateName } from './namefilter' export type DecryptedNode = PrivateFileInfo | PrivateTreeInfo export type PrivateFileInfo = { content: CID metadata: Metadata ...
import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { AppComponent } from './app.component'; import { RoamProfileComponent } from './roam-profile/roam-profile.component'; im...
/* eslint-disable */ import {minIndex} from '~/collections/NumericArrays.js'; import {PointCalculableShape} from '~/geometry/Point.js'; import {Arrays} from '../collections/index.js'; import { Points, Rects} from '../geometry/index.js'; import {clamp, flip, getFieldByPath, getFieldPaths, ifNaN, roundUpToMultiple, scale...
import { getOptions, normalize } from "../../common/util" import { ApiEndpoint } from "../../common/http" import "./error.css" import "./global.css" import "./home.css" import "./login.css" import "./update.css" const options = getOptions() const isInput = (el: Element): el is HTMLInputElement => { return !!(el as...
import * as _ from 'underscore' import { ExpectedPackageDBType, ExpectedPackageId, ExpectedPackages } from '../../../lib/collections/ExpectedPackages' import { PackageInfoDB } from '../../../lib/collections/PackageInfos' import { RundownId, Rundowns } from '../../../lib/collections/Rundowns' import { SegmentId } from '...
// export * from './types'; import * as sessionActions from "./actions" import * as sessionSelectors from "./selectors" import { sessionReducer, SessionState } from "./reducer" export { sessionActions, sessionReducer, SessionState, sessionSelectors }
import { useConsolidatedRef, useIsRTL, usePassThroughHtmlProps } from '@ui5/webcomponents-react-base/dist/hooks'; import { ThemingParameters } from '@ui5/webcomponents-react-base/dist/ThemingParameters'; import { enrichEventWithDetails } from '@ui5/webcomponents-react-base/dist/Utils'; import { BarChartPlaceholder } fr...
// Product Parts /* HTML Nodes for converting */ export abstract class HTMLNode { type:string; constructor(type:string) { this.type = type; } abstract start():string; abstract end():string; } export class HTMLSimpleNode extends HTMLNode { simpleTagMap: object = { "paragraph": "p", "bold": "b",...
import React from "react"; export default function defer<P>(Component: React.ComponentType<P>) { const Defer = (props: P) => { const [mounted, setMounted] = React.useState(false); React.useEffect(() => { setMounted(true); }, []); return <Component mounted={mounted} {...props} />; }; retu...
import {NgModule} from '@angular/core'; import {Routes, RouterModule} from '@angular/router'; import {EmptyRouteComponent} from './empty-route/empty-route.component'; import {APP_BASE_HREF} from '@angular/common'; import {HomeComponent} from './home/home.component'; const routes: Routes = [ {path: '', component: Ho...
class Path<T> { children: { [key: string]: Path<T>; } = {}; $: { [key: string]: Path<T>; } = {}; $x?: Path<T>; $xx?: Path<T>; value?: { [ref: string]: T; }; } export interface Lookup<T> { keys: { [key: string]: string }; value: { [ref: string]: T }; path: string; fullPath: string;...
import EventEmitter from 'eventemitter3'; import { ITexture2D } from '../renderer/ITexture2D'; export type IImage = HTMLImageElement | File | string; export type Listener = (...args: any[]) => void; export interface IIconValue { x: number; y: number; image?: HTMLImageElement; } export interface IIcon { id: stri...
import { NavigationAction, NavigationState, Router } from '@react-navigation/routers'; import { NavigationEventEmitter } from './useEventEmitter'; import { NavigationProp, PrivateValueStore } from './types'; declare type Options<State extends NavigationState, Action extends NavigationAction> = { onAction: (action: ...
import { Operator } from '../Operator'; import { Observable } from '../Observable'; import { Subscriber } from '../Subscriber'; import { ObservableInput, OperatorFunction } from '../types'; import { lift } from '../util/lift'; import { SimpleInnerSubscriber, SimpleOuterSubscriber, innerSubscribe } from '../innerSubscri...
import { RevocableCredential, JWT, buildIssuer, decodeVerifiableCredential, unrevokeCredential } from "verite" import { apiHandler } from "../../../../../lib/api-fns" import { findRevocationListForCredential, saveRevocationList } from "../../../../../lib/database" import { NotFoundError } from "../../../...
import { Request, Response } from "express"; import { ListTagService } from "../services/ListTagService"; export class ListTagController{ async handle(request: Request, response: Response){ const listTagService = new ListTagService() const tags = await listTagService.execute() return r...
import { observable } from '../src/observable' import { autorun } from '../src/reactions' describe('Observable', () => { it(`should react on change`, () => { const mock = jest.fn() const num = observable(1) autorun(() => mock(num.get())) expect(mock).lastCalledWith(1) num...
/* Imports: External */ import { expectApprox, sleep } from '@eth-optimism/core-utils' import { Wallet, BigNumber, Contract, ContractFactory, constants } from 'ethers' import { serialize } from '@ethersproject/transactions' import { ethers } from 'hardhat' import { TransactionReceipt, TransactionRequest, } from '@e...
import {createStyles, Theme} from "@material-ui/core"; export default (theme: Theme) => createStyles({ tableWrap: { height: 'calc(100% - 60px)', maxheight: 'calc(100% - 60px)', '& td': { padding: '5px 10px !important', fontSize: '14px' }, '& p': { ...
/* eslint-disable @typescript-eslint/no-non-null-assertion */ import { dataType } from '../../types' import { formParse, getJson, zip, exists } from '../utils' import fs from 'fs' import path from 'path' import { IncomingForm } from 'formidable' import { NextApiResponse, NextApiRequest } from 'next' const development ...
export const EVENTS = { REQUEST_CHILD_ETHEREUM_ACCOUNTS_START: "walletlink_sdk.request_child_ethereum_accounts.start", REQUEST_CHILD_ETHEREUM_ACCOUNTS_RESPONSE: "walletlink_sdk.request_child_ethereum_accounts.response", STARTED_CONNECTING: "walletlink_sdk.started.connecting", CONNECTED_STATE_CHANGE: "wa...
/*import { ComponentFixture, TestBed } from "@angular/core/testing"; import { ProfileComponent } from "./profile.component";*/ describe("ProfileComponent", () => { /*let component: ProfileComponent; let fixture: ComponentFixture<ProfileComponent>; beforeEach(async () => { await TestBed.configureT...
export declare type TChannelCountMode = 'clamped-max' | 'explicit' | 'max';
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. import { IMock, It, Mock, Times } from 'typemoq'; import { ContentScriptInjector } from 'background/injector/content-script-injector'; import { BrowserAdapter } from '../../../../common/browser-adapters/browser-adapter'; im...
import { Component } from '@angular/core'; import { ModalController } from 'ionic-angular'; import { CalendarComponentOptions } from '../ion2-calendar' @Component({ selector: 'demo-options', template: ` <hr> <h3 style="text-align: center;">options</h3> <ion-list> <ion-item> <ion-label>...
export const USERS = '/users'; export const USER = '/users/:id';
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** import * as pulumi from "@pulumi/pulumi"; import * as utilities from "../utilities"; /** * Manages a ServiceBus Topic. * * **Note** Topics can o...
/* * Copyright (C) 2019 CaMnter yuanyu.camnter@gmail.com * * 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 {MigrationInterface, QueryRunner} from "typeorm"; export class email1572350407521 implements MigrationInterface { name = 'email1572350407521' public async up(queryRunner: QueryRunner): Promise<any> { await queryRunner.query("ALTER TABLE `user` ADD `email` varchar(255) NOT NULL", undefined); ...
import { Component, h, State, Method } from '@stencil/core'; @Component({ tag: 'tok-side-menu', styleUrl: 'side-menu.css', shadow: true }) export class SideMenu { @State() isOpen = false; @State() isFooterFixed = false; @Method() async open(open: boolean) { this.isOpen = open; } @Method() asy...
/// <reference path="../jqwidgets.d.ts" /> import { EventEmitter, ElementRef, OnChanges, SimpleChanges } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; export declare class jqxFormattedInputComponent implements ControlValueAccessor, OnChanges { attrDisabled: boolean; attrDecimalNot...
import { MetadataStorage } from '../metadata'; import { ReferenceType } from '../enums'; import type { EntityProperty, AnyEntity } from '../typings'; import { Utils } from '../utils/Utils'; import type { PropertyOptions } from './Property'; export function Formula<T>(formula: string | ((alias: string) => string), opti...
import CollectionPicker from './collection'; import { useAssetPicker } from './provider'; import SchemaPicker from './schema'; import TemplatePicker from './template'; type AssetFormProps = { onClose: () => void; }; const AssetForm = ({ onClose }: AssetFormProps) => { const { collection, schema, template, image, ...
export type SurfaceStyle = { strokeColor: string fillColor: string } const surfaceStyleA: SurfaceStyle = { strokeColor: '#5a8055', fillColor: '#1b4d30' } const surfaceStyleB: SurfaceStyle = { strokeColor: '#5a8055', fillColor: '#00a040' } const surfaceStyleC: SurfaceStyle = { strokeColor: '#5a8055', ...
/*! * Copyright (c) 2018, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by appli...
import React from 'react'; import { mount } from 'enzyme'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux'; import App from './App'; import { initialState } from '../cluster-dashboard/ClusterDashboardReducer'; const middlewares = [thunk] const...
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core'; import { COMMA, ENTER, TAB } from '@angular/cdk/keycodes'; import { CreateVsDialogService } from '../../services/create-vs-dialog.service'; import { DbRecord, Filter } from '../../models/vs.model'; import { EditVsDialogService } from '../../se...
import * as chai from "chai"; import { VersionsController } from "./versions.controller"; import { VersionsService } from "./versions.service"; const expect = chai.expect; import * as express from "express"; import * as sinon from "sinon"; import { VersionModel } from "./version.model"; describe("VersionsController", ...
import {Request, Response} from 'express'; // DB import {setActivationToken, setHash} from '../../utils/auth.utils'; import {Profile} from '../../utils/interfaces/Profile'; import {Status} from '../../utils/interfaces/Status'; import {insertProfile} from '../../utils/profile/insertProfile'; import formData from 'form-d...
/* * 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 { Definition, FilterCallback, Client, Context } from "./annotations"; import * as decode from "./encoding/decode"; import { ChangeTree } from "./ChangeTree"; import { NonFunctionPropNames } from './types/HelperTypes'; import { EventEmitter } from './events/EventEmitter'; export interface DataChange<T = any> { ...
// Copyright 2013-2016, Google, Inc. // 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 ...
import { FilterParams } from 'pip-services3-commons-node'; import { PagingParams } from 'pip-services3-commons-node'; import { DataPage } from 'pip-services3-commons-node'; import { DirectClient } from 'pip-services3-rpc-node'; import { IClustersClientV1 } from './IClustersClientV1'; import { ClusterV1 } from './Cluste...
/*! accessibilityPatterns.ts * Flamingos are pretty badass! * Copyright (c) 2018 Max van der Schee; Licensed MIT */ // import { // createConnection, // ProposedFeatures // } from 'vscode-languageserver'; // connection is used for debuging > connection.console.log(); // let connection = createConnection(ProposedFea...
import { HvwCachingType } from '@svv/core/models'; import * as mongoose from 'mongoose'; export const HvwJobSchema = new mongoose.Schema( { name: { type: String, unique: true, required: true }, type: { type: HvwCachingType, required: true }, cronExpression: { type: String, required: true }, lastExecu...
<TS language="uz@Cyrl" 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> ...
import cn from 'classnames' import { Icon } from '@ui/icon' import { DecisionTreeModalDataCy } from '@components/data-testid/decision-tree-modal.cy' import { SwitchTheme } from '../../../query-builder/ui/switch-theme' interface IHeaderModalProps { groupName?: string handleClose: () => void theme?: string isTe...
'use strict'; // Modules to control application life and create native browser window import { app, BrowserWindow } from 'electron'; import { setMainWindow } from './BrowserWindowHandler'; import { startContextMenu } from './ContextMenu'; import { setMenu } from './Menu'; export const start = async () => { startCo...
import * as embed from "../src/embed"; import * as index from "../src"; import * as sorting from "../src/sorting";
import { Injectable, HttpService } from '@nestjs/common'; @Injectable() export class AppService { response: any; constructor(private httpService: HttpService) {} getHello(): string { return 'Hello World!'; } httpTest(): string { this.httpService.get('http://localhost:3000').subscribe((data) => { ...
import { read } from '@lib'; import { expect } from 'chai'; import { day, results, year } from '.'; import { runner } from './part_two'; describe('2018 - Day 1 - Part Two', () => { it('should solve the input', async () => { expect(await runner((await read(year, day)()).input)).to.equal(results.two.input); }); it...
import { createServer } from 'http'; import { parse } from 'url'; import next from 'next'; const port = parseInt(process.env.PORT || '3000', 10); const dev = process.env.NODE_ENV !== 'production'; const app = next({ dev }); const handle = app.getRequestHandler(); app.prepare().then(() => { createServer((req, res) =...
import React, {FunctionComponent} from 'react'; import {em, size, transitionProps} from '~/utils/style'; import Icon from '~/components/Icon'; import Properties from '~/components/GraphPage/Properties'; import type {Properties as PropertiesType} from '~/resource/graph/types'; import styled from 'styled-components'; im...
import * as React from "react"; declare const ClrShieldSolidAlerted: React.SFC; export default ClrShieldSolidAlerted;
import React,{useState} from 'react'; import ShoppingItem from '../models/ShoppingItem'; import {addItem} from '../actions/shoppingActions'; import {ThunkDispatch} from 'redux-thunk'; import {AnyAction} from 'redux'; import {useDispatch,useSelector} from 'react-redux'; interface TokenState { login:{ token:string }...
import { WebviewWindow } from "@tauri-apps/api/window"; export const openPreferences = () => { const preferencesWindow = new WebviewWindow("Preferences", { url: "/preferences", decorations: false, width: 500, height: 700, center: true, }); };
import React from 'react' import { Alert } from 'element-plus-react' import './index.scss' const Demo = () => (<div className="alert-list"> <Alert title="success alert" type="success" description="more text description" showIcon /> <Alert title="info alert" type="info" description="more text descrip...
import { ObjectStorageBucket, ObjectStorageCluster } from 'linode-js-sdk/lib/object-storage'; import { pathOr } from 'ramda'; import * as React from 'react'; import { connect, MapDispatchToProps } from 'react-redux'; import { matchPath, Redirect, Route, RouteComponentProps, Switch } from 'react-router-dom...
import { gql } from "apollo-boost"; export const removeStudentMutation = gql` mutation($classId: ID!, $studentId: ID!) { removeStudentFromClassroom( arguments: { classId: $classId, studentId: $studentId } ) { Id } } `; export const addStudentMutation = gql` mutation($classId: ID!, $stude...
/** * Gerber Parsing Library * * Author: Venelin Efremov * Copyright: Copyright (c) Venelin Efremov 2017 * * License: MIT License, see LICENSE.txt */ /** * This file contains classes that implement functionality for * the individual gerber commands. * * Each command class would parse the command from th...
/// Our goal here is to determine if the appropriate environment variable is loaded and if so, /// allow overriding of the fh repository. But it has to be addressed in the request context. /// /// For this we are using the W3C Baggage standard for future supportability import { PostLoadNewFeatureStateAvailableListener...
export * from './logo'; export * from './left-arrow'; export * from './right-arrow';
// *** 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"; /*...
import {LocaliseApi} from "../api/localise-api"; import {resolve} from "path"; import {ensureDirSync, writeJSONSync} from "fs-extra"; import {flatten} from "flat"; import {get} from 'lodash'; import {IConfig} from "../conf/iconfig"; import {ILogger} from "../conf/ilog"; export class Locales { readonly api: Localise...
import { Model } from 'sequelize-typescript'; import { Sequelize } from "sequelize"; import { SequelizeModelService } from '../../library/crud/sequelize.model.service'; import { Request } from 'express'; import { CategoryModel } from "./category.model"; export declare class CategoryService extends SequelizeModelService...
import { Component, OnInit, Inject, Input, } from '@angular/core'; import { Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { AuthenticationService } from '../auth.service'; import { AUTHENTICATION_AUTH_PAGE_ROOT_URI, AUTHENTICATION_DROPDOWN_ITEMS } from '../tokens'; import { Dro...
var viewer; import 'https://code.jquery.com/jquery-3.3.1.min.js'; import 'https://developer.api.autodesk.com/modelderivative/v2/viewers/7.*/viewer3D.min.js'; var options = { env: 'AutodeskProduction', api: 'derivativeV2', // TODO: for models uploaded to EMEA change this option to 'derivativeV2_EU' getAccessToken:...
import React from 'react' import { TouchableRipple } from 'react-native-paper' export default function TouchableIcon(props) { return ( <TouchableRipple onPress={props.onPress} style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: pr...
import * as React from 'react'; import { DateRange } from '@moxb/moxb'; import { CSSProperties } from 'react'; import { DatePickerProps } from 'antd/lib/date-picker'; import { observer } from 'mobx-react'; import { parseProps } from './BindAnt'; import { DatePicker } from 'antd'; import * as moment from 'moment'; impor...
import React, { useEffect, useState } from 'react'; import PropTypes from 'prop-types'; import { Link, withRouter } from 'ice'; import { Nav } from '@alifd/next'; import { asideMenuConfig } from '../../menuConfig'; import Header from '../NavHeader'; import Footer from '../NavFooter'; import Icon from '@/components/Icon...
export enum WorldRegion { NorthAmerica, SouthAmerica, Europe, AsiaPacific, MiddleEastAfrica }
import { Book } from './book.model'; export interface Author { __typename: 'Author'; id: string; name: string; dob?: number; books?: Book; }
import { ModelData } from '../../../types'; import { EXECUTIONS_PATH } from '../../../utils/api/httpClient'; import useAPI from '../../../utils/api/useAPI'; const useModelData = (executionId: string) => { return useAPI<ModelData>(`${EXECUTIONS_PATH}/${executionId}/model`, 'get'); }; export default useModelData;
import { ApolloClient, InMemoryCache } from "@apollo/client"; const GRAPH_URL = process.env.NEXT_PUBLIC_GRAPH_URL; if (!GRAPH_URL) { throw new Error("Please add your Graph URL to .env.local"); } const client = new ApolloClient({ uri: GRAPH_URL as string, cache: new InMemoryCache(), }); export default client;
/** * This file is hand tweeked based on * the out put of the Angular template compiler * and then hand tweeked to show possible future output. */ /* tslint:disable */ import * as import7 from '@angular/core/src/change_detection/change_detection'; import * as import5 from '@angular/core/src/di/injector'; import * ...
/* * 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, { useContext, useState, useEffect } from 'react'; import { EuiB...
import config from 'config'; type Props = { children: JSX.Element | Array<JSX.Element>, }; export default function SubscribeForm({ children }: Props) { return ( <form action={config.subscribeForm} method='post' target='popupwindow' > {children} </form> ); }
import CommandError from '../CommandError'; import CommandInfo from '../Info/CommandInfo'; import {Interfaces} from '../Interfaces'; import TypeReaderResult from './TypeReaderResult'; import TypeReaderValue from './TypeReaderValue'; import ResultInterface = Interfaces.ResultInterface; export default class ParseResult ...
export interface IUserSecret { access_token: string; expires_in: number; refresh_token: string; scope: 'identify email'; token_type: 'Bearer'; }
import * as actionTypes from './constants' import { singersStateType } from './data.d' import produce from 'immer' const defaultState: singersStateType = { singerList: [], enterLoading: true, //控制进场Loading pullUpLoading: false, //控制上拉加载动画 pullDownLoading: false, //控制下拉加载动画 offset: '0', //这里是当前页数 category: ...
<?xml version="1.0" ?><!DOCTYPE TS><TS language="ca_ES" version="2.0"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Bitcoin</source> <translation>Sobre Bitcoin</translation> </message> <message> <locat...
import _ from "lodash"; import { GenericObject } from "../../types/Common"; import { IXFilterFunction } from "../../types/XFilter"; const get: IXFilterFunction< any, any, IXFilterFunctionGetOpts, GenericObject > = function get( payload: any, opts?: IXFilterFunctionGetOpts, ref?: GenericObject ): any { ...
import { Schema } from 'ts-framework'; const UserSchema = new Schema({ name: String, email: String, password: String, }, { timestamps: { createdAt: true, updatedAt: true }, }); export default UserSchema;
/** * @license * Copyright Akveo. All Rights Reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ // The file contents for the current environment will overwrite these during build. // The build system defaults to the dev environment which uses `environment.ts`...