text stringlengths 10 953k |
|---|
/**
* The math in this file is ported from GWToolboxpp's source (https://github.com/HasKha/GWToolboxpp/blob/master/GWToolboxdll/Windows/DailyQuestsWindow.cpp)
* @todo make it more robust with date-fns
*/
const MILLISECONDS_PER_DAY = 24 * 60 * 60 * 1000;
const MILLISECONDS_PER_WEEK = MILLISECONDS_PER_DAY * 7;
impor... |
/*
Copyright 2021 Eduworks Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, sof... |
import colors from '@celo/react-components/styles/colors'
import fontStyles from '@celo/react-components/styles/fonts'
import { StackScreenProps } from '@react-navigation/stack'
import * as React from 'react'
import { useAsync } from 'react-async-hook'
import { useTranslation } from 'react-i18next'
import { ActivityIn... |
import { FormEvent, useState } from 'react';
import { useNavigate, useParams } from 'react-router-dom'
import logoImg from '../../assets/logo.png';
import { Button } from '../../components/Button';
import { Question } from '../../components/Questions';
import { RoomCode } from '../../components/RoomCode';
import { us... |
import { isItSummer as sut } from './isItSummer';
describe('isItSummer', () => {
let yesAnswer: string;
let noAnswer: string;
beforeEach(() => {
yesAnswer = 'Yes!☀️';
noAnswer = 'No...😞';
});
it('should return Yes answer for June', () => {
const checkDate = new Date(2021,... |
import { Col, Layout, Row } from 'antd';
import React, { Component, FunctionComponent, PureComponent, StatelessComponent } from 'react';
interface TaskScreenInfo {
type?: 'big' | 'small';
orientation?: 'portrait' | 'landscape';
displayInfo?: SizingInfo;
optionsInfo?: SizingInfo;
windowInfo?: Sizing... |
// @generated
/* tslint:disable */
/* eslint-disable */
// This file was automatically generated and should not be edited.
// ====================================================
// GraphQL fragment: SolidCardSolidDefinitionFragment
// ====================================================
export interface SolidCardSol... |
/**
* @license
* Copyright (C) 2017 The Android Open Source Project
*
* 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 require... |
export default function sleep(ms: number) {
return new Promise(resolve => {
setTimeout(resolve, ms);
});
} |
/* eslint-disable */
import React from 'react';
import createIcon from './utils/createIcon';
export default createIcon(<svg viewBox="0 0 1024 1024"><path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.... |
import { arg, booleanArg, enumType, extendType, list, nonNull, objectType, stringArg, subscriptionField } from "nexus"
import { todoModel, Todo as ITodo, CompletitionStatus } from "../models/todo"
import { userModel } from "../models/user"
const getUserFromSession = async (session: any) => {
const userId = session?... |
import { createModel } from '../../src'
import { RootModel } from './store'
import { config } from './shared'
export const counter = createModel<RootModel, 'counter'>()(config) |
const IconCross = (): any => (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 512 512"
stroke="currentColor"
fill="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width={15}
d="M268.064,256.... |
import 'verbal-expressions'; |
import axios from 'axios';
const api = axios.create({
baseURL: 'http://192.168.42.221:3333',
});
export default api; |
import {
Chart,
Dashboard,
DataFlow,
DataJob,
Dataset,
Entity,
EntityType,
GlobalTags,
GlobalTagsUpdate,
InstitutionalMemory,
InstitutionalMemoryMetadata,
InstitutionalMemoryUpdate,
Owner,
OwnerUpdate,
TagAssociation,
} from '../types.generated';
import { find... |
import glob from "fast-glob";
import { pathUtil } from "../utils/pathUtil.js";
import IConfig from "../interfaces/IConfig.js";
export default class PathsCache {
private static instance: PathsCache;
private paths?: string[];
private postPaths?: string[];
private outputPaths?: string[];
private constructor() ... |
import { html, css, LitElement, property } from 'lit-element';
export class WcDashboard extends LitElement {
static styles =css`
section {
display: grid;
grid-gap: 15px;
grid-template-rows: repeat(var(--wc-dashboard-rows, 2), 1fr);
grid-template-columns: repeat(var(--wc-dashboar... |
import { writable, Writable } from "svelte/store";
/**
* A Writable store that can persist its content to a storage
*/
export interface PersistentWritable<T> extends Writable<T> {
/**
* Removes the item from the storage. Note that the underling store value remains untouched
*/
remove: () => void;
}
/**
* A s... |
/**
* @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 {CompileQueryMetadata} from '../compile_metadata';
import {ListWrapper} from '../facade/collection';
import {... |
const apiVersion = 'v2.0.0';
const apiRoot = 'http://localhost:8080';
export default {
apiVersion,
apiRoot,
}; |
/* tslint:disable */
/* eslint-disable */
// @generated
// This file was automatically generated and should not be edited.
import { CreateAdditionalProductOrderMutationInput, ProductServiceType } from "./../../../@types/__generated__/globalTypes";
// ====================================================
// GraphQL mut... |
import React from 'react';
import { ActivityIndicator, View} from 'react-native';
import AuthRoutes from './auth.routes';
import AppRoutes from './app.routes';
import {useAuth} from '../hooks/auth';
const Routes: React.FC = () =>{
const {user, loading} = useAuth();
if(loading){
return(
<View style ={{f... |
import * as React from "react";
import { Environment, Network, RecordSource, Store, ConnectionHandler } from "relay-runtime";
////////////////////////////
// RELAY MODERN TESTS
///////////////////////////
import {
graphql,
commitMutation,
createFragmentContainer,
createPaginationContainer,
createR... |
import { Routes, RouterModule } from '@angular/router';
import { SMSComponent } from './sms.component';
const routes: Routes = [
{
path: '',
component: SMSComponent
}
];
export const smsRouting = RouterModule.forChild(routes); |
import { render, unmountComponentAtNode } from 'react-dom';
import { act } from 'react-dom/test-utils';
// FIXME: типы для jsdom нигде не подцеплены, подцепим после переезда на jest
// tslint:disable-next-line:ban-ts-ignore
// @ts-ignore
import { JSDOM } from 'jsdom';
import ControlParent from './resources/ShouldCompon... |
export interface ReelsTrayFeedResponseRootObject {
tray: ReelsTrayFeedResponseTrayItem[];
story_ranking_token: string;
broadcasts: ReelsTrayFeedResponseBroadcastsItem[];
sticker_version: number;
face_filter_nux_version: number;
stories_viewer_gestures_nux_eligible: boolean;
has_new_nux_story... |
export const Moves: {[k: string]: ModdedMoveData} = {
absorb: {
inherit: true,
basePower: 40,
pp: 15,
},
baddybad: {
inherit: true,
isNonstandard: null,
},
bouncybubble: {
inherit: true,
isNonstandard: null,
},
buzzybuzz: {
inherit: true,
isNonstandard: null,
},
doubleironbash: {
inherit: t... |
// tslint:disable:max-line-length
import React from 'react'
import BaseIcon from '_utils/icon'
import { BaseIconDefaultProps } from '_utils/icon/BaseIcon'
export const OdnoklassnikiIcon = (props: Icon) => (
<BaseIcon {...props}>
<path
d="M3 0h16a3 3 0 0 1 3 3v16a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3V3a3 3 0 0 1 3-... |
#!/usr/bin/env node
/**
* @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 { ProcessOutput } from '@angular-devkit/core/node';
export interface MainOptions {
arg... |
export interface DemoTokenPayload {
userId: string;
} |
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ItemsModule } from './items/items.module';
import { MongooseModule } from '@nestjs/mongoose';
import { ConfigModule } from '@nestjs/config';
import { UsersModule } from './user... |
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { NerFilterComponent } from './ner-filter.component';
describe('NerFilterComponent', () => {
let component: NerFilterComponent;
let fixture: ComponentFixture<NerFilterComponent>;
beforeEach(async () => {
await TestBed.configureTestin... |
const format = ( arr , endTime ) => {
const useArr=arr.slice();
const re = [];
if ( useArr.length % 2 !== 0 ) useArr.push( endTime );
let i = 0;
while ( i < useArr.length ) {
if ( useArr[ i ] >= useArr[ i + 1 ] ) {
i = Infinity;
break;
}
re.push( [ use... |
import { extend } from '@syncfusion/ej2-base';
import { IEditCell } from '../base/interface';
import { Column } from '../models/column';
import { AutoComplete } from '@syncfusion/ej2-dropdowns';
import { Query, DataManager, DataUtil } from '@syncfusion/ej2-data';
import { isEditable, getComplexFieldID, getObject } from... |
import { PartialDeep } from "type-fest";
import { Provider } from "@ethersproject/providers";
import { Address, SdkError } from "./types";
import EventEmitter from "events";
export interface AddressesOverride {
lens?: Address;
oracle?: Address;
adapters: {
registryV2?: Address;
ironBank?: Address;
};
... |
/*
* Copyright (c) Akveo 2019. All Rights Reserved.
* Licensed under the Personal / Commercial License.
* See LICENSE_PERSONAL / LICENSE_COMMERCIAL in the project root for license information on type of purchased license.
*/
import { Component, OnDestroy } from '@angular/core';
import { NbThemeService, NbMediaBrea... |
const Resourcer = require('redux-rest-resource');
export const { types, actions, rootReducer } = Resourcer.createResource({
name: 'user',
url: `https://5b1b0a966e0fd400146aaee2.mockapi.io/users/:id`
}); |
import styled, { keyframes } from 'styled-components'
import { pulse } from 'react-animations'
export const CardWrapper = styled.div`
background: ${({ theme }) => theme.palette.background.paper};
border-radius: 20px;
overflow: hidden;
height: 400px;
width: 100%;
width: 320px;
box-shadow: 0 5px 10px rgba(... |
import { Component, ViewChild, ElementRef, ViewEncapsulation, NgModule } from '@angular/core';
import { IonicApp, IonicModule, PopoverController, NavParams, ViewController } from '../../../..';
@Component({
template: `
<ion-content>
<ion-list radio-group [(ngModel)]="fontFamily" (ionChange)="changeFontFam... |
import { $ } from "../lib/utils"
import * as curl from "../lib/curl"
const db = localStorage
interface UserData {
profileHTML: string
saveAt?: Date
id: string
syncAt: Date | null
isMentor: boolean
fullName: string
}
type AnyUser = User | NoDataUser
export const whoami = () : AnyUser => {
let person = ... |
/* Copyright (c) 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. */
import React, { FC, Fragment } from 'react';
interface IProps {}
const FeatureReadFooter: FC<IProps> = () => <Fragment />;
export { FeatureReadFooter }; |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { RequestParameters } from "@azure-rest/core-client";
import {
DataPlaneAccountUpdateParameters,
AccessKeyOptions,
Collection,
ResourceSetRuleConfig,
} from "./models";
export type AccountsGetAccountPropertiesParameters = Reques... |
import * as __aws_sdk_middleware_stack from "@aws-sdk/middleware-stack";
import * as __aws_sdk_types from "@aws-sdk/types";
import * as _stream from "stream";
import { CreateServiceSpecificCredential } from "../model/operations/CreateServiceSpecificCredential";
import { InputTypesUnion } from "../types/InputTypesUnion"... |
import React, { useRef } from 'react'
import { SafeAreaView, Text, View, ImageBackground } from 'react-native'
import { MainRoutes } from '../Navigators/routes'
//Components
import {
Colors,
Avatar,
UserInfoSection,
StyledTitle,
Caption,
Row,
InfoBoxWrapper,
InfoBox,
CategoryButtonText,
MenuWrapper... |
export const GA_TRACKING_ID = process.env.NEXT_PUBLIC_GA_ID;
export function pageView(url: string) {
if (!GA_TRACKING_ID) return;
window.gtag('config', GA_TRACKING_ID, {
page_path: url,
});
} |
import * as React from 'react';
import { SVGIconProps } from '../createIcon';
export declare const CcAmazonPayIconConfig: {
name: 'CcAmazonPayIcon',
height: 512,
width: 576,
yOffset: 0,
xOffset: 0,
transform: ''
};
export declare const CcAmazonPayIcon: React.ComponentClass<SVGIconProps>;
export default CcAm... |
export * from './ZipCodeValidator';
export * from './EmailValidator'; |
import { IsInt, IsString } from 'class-validator';
export class CreateSupermarketDto {
@IsString()
readonly name: string;
@IsInt()
readonly age: number;
@IsString()
readonly breed: string;
} |
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { ProgressbarModule } from 'ngx-bootstrap/progressbar';
import { DocsModule } from '../../docs';
import { ProgressbarSectionComp... |
import NavBar from './NavBar';
import UserBar from './UserBar';
import ComponentList from './ComponentList';
import Button from './Button';
import VerticalCard from './VerticalCard';
import TaskCard from './TaskCard';
import Input from './Input';
import PrivateRoute from './PrivateRoute';
import Footer from './Footer';... |
export * from "./MainBlock"; |
import { ListItem } from "@react-md/list";
import React, { useRef } from "react";
import { Route, worlds } from "zwift-data";
import { useLocationState } from "../../hooks/useLocationState";
import { useOnScreen } from "../../hooks/useOnScreen";
import { Distance } from "../Distance";
import { Elevation } from "../Elev... |
/**
* stbui v1.0.0
* @license
* Copyright Stbui All Rights Reserved.
* https://github.com/stbui
*/
export * from './divider' |
import { IException } from "../interfaces";
import { promise, htmlResult } from "../helpers";
import { HttpResult, HttpFormatResult } from "../types";
import { HTTP_STATUS_CODE } from "../enums";
export class ErrorHandler {
async onServerError(ex: IException): Promise<HttpResult | HttpFormatResult> {
let ... |
import { Injectable, Inject } from '@nestjs/common';
import { AuthorRepository } from 'src/Shared/Entity/Author/Repository/Repository';
import { Author } from '../Author';
const AddesRepo = () => Inject('AddesRepo');
@Injectable()
export class AuthorCRUD {
constructor(
@AddesRepo() private readonly authorRepositor... |
import * as Yup from 'yup';
const subscribe = Yup.object().shape({
name: Yup.string()
.min(3, 'Campo nome deve ter pelo menos 3 caracteres')
.max(40, 'Campo nome a atingiu o limite de 40 caracteres')
.required('Campo nome é obrigatório'),
email: Yup.string()
.email('Digite um E-mail valido')
.r... |
import { Users } from './users';
describe('Users', () => {
it('should be defined', () => {
expect(new Users()).toBeDefined();
});
}); |
'use strict';
import { CancellationToken, Definition, DefinitionProvider, Location, Position, TextDocument } from 'vscode';
import * as Constants from '../common/constants';
import { VariableUtility } from '../utils/variableUtility';
export class RequestVariableDefinitionProvider implements DefinitionProvider {
p... |
import {
AfterViewInit,
ChangeDetectorRef,
Component,
ContentChildren,
ElementRef,
HostListener,
Input,
QueryList,
ViewChild,
ViewEncapsulation,
OnDestroy
} from '@angular/core';
import {HcPopoverAnchorDirective} from '../pop/directives/popover-anchor.directive';
import {HcPo... |
export = InternalOpenIDError;
/**
* `InternalOpenIDError` error.
*
* InternalOpenIDError wraps errors generated by node-openid. By wrapping these
* objects, error messages can be formatted in a manner that aids in debugging
* OpenID issues.
*
* @api public
*/
declare function InternalOpenIDError(message: any, ... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator 0.16.0.0
* Changes may cause incorrect behavior and will be lost if the code is
* regenerate... |
import { waitForAsync, ComponentFixture, TestBed } from '@angular/core/testing';
import { MovimientoComponent } from './movimiento.component';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { RouterTestingModule } from '@angular/router/testing';
describ... |
/**
* @license
* Copyright Alibaba.com 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://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import {
ChangeDetectionStrategy,
Component,
Input,
OnChanges,
OnInit,
... |
import type { RangeValue, PickerMode } from '../interface';
import type { GenerateConfig } from '../generate';
import { getValue, updateValues } from '../utils/miscUtil';
import { getClosingViewDate, isSameYear, isSameMonth, isSameDecade } from '../utils/dateUtil';
import type { Ref } from 'vue';
import { watch, comput... |
/**
* @license
* Copyright 2020 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Type definitions for the Blockly nl locale.
* @author samelh@google.com (Sam El-Husseini)
*/
/// <reference path="msg.d.ts" />
import BlocklyMsg = Blockly.Msg;
export = BlocklyMsg; |
import { isString, isDefined } from "@ribajs/utils/src/type";
/**
* Sets a default value if the first value is not set
* @see https://gist.github.com/der-On/cdafe908847e2b882691
*/
export const defaultFormatter = {
name: "default",
read(value: any, defaultValue: any) {
if (isDefined(value)) {
if (isSt... |
import React from "react"
import Layout from "../../components/Layout"
import { Link } from "gatsby"
import "./index.css"
const ContactSuccess = () => {
return (
<Layout>
<div className="success-contact-page-wrapper">
<h1>¡Gracias por comunicarte con nosotros!</h1>
<h2>Nos estaremos comunic... |
import { PackageManager } from '../dependency-manager'
import { shell } from '../shell'
import { Recipe } from '../types/recipe'
const addAdditionalPackage = async (
packageManager: PackageManager,
cwd: string,
appName: string,
packageName: string
): Promise<void> => {
const ngCommand = ['ng', 'add', package... |
// import styles from '../styles/Home.module.sass';
import Header from '../components/Header';
import Form from '../components/Form';
const index = () => {
return (
<>
<Header />
<Form />
</>
);
};
export default index; |
/*
* 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 expect from '@kbn/expect';
import { FtrProviderContext } from '../../.... |
import { BaseTheme } from '../lib/styled/BaseTheme'
const base1Color = '#2c2c2c'
const base2Color = '#1e2022'
const primaryColor = '#02A47E'
const dark26Color = 'rgba(0,0,0,0.26)'
const light70Color = 'rgba(255,255,255,0.7)'
const light30Color = 'rgba(255,255,255,0.3)'
const light12Color = 'rgba(255,255,255,0.12)'
co... |
import { AttributeIcon, Dropdown } from "components";
import React, { useMemo } from "react";
import {
StyledAttributeModalRow,
StyledAttributeModalRowLabel,
StyledAttributeModalRowLabelIcon,
StyledAttributeModalRowLabelText,
} from "../AttributesEditorStyles";
interface AttributeRow {
value: string | string... |
import Vue, { ComponentOptions, Component, CreateElement, VNode } from 'vue'
import {
mapState,
mapGetters,
mapActions,
mapMutations,
Dispatch,
Commit,
Store
} from 'vuex'
import { merge, pick, omit, keys, mapValues, flattenObject } from './utils'
export type TransformFunction = (
options: ComponentO... |
import React from 'react';
import {useDropzone} from 'react-dropzone';
type DropzoneProps = {
onDrop: (files: File[]) => void,
children: any,
hidden: boolean,
};
const dropzoneOptions = {
accept: ['image/png'],
multiple: false,
maxFiles: 1,
minSize: 67,
maxSize: 1_048_576,
};
export function Dropzone... |
import {Client} from '@notionhq/client';
import Header from '../components/notion/header';
import BulletedListItem from '../components/notion/bulleted-list-item';
import Paragraph from '../components/notion/paragraph';
import Code from '../components/notion/code';
import {
GetBlockResponse,
ListBlockChildrenRespons... |
import "vue-router";
import { RssLink } from "./utilities/pageSeo";
declare module "vue-router" {
interface RouteMeta {
color: string;
title?: string;
description?: string;
keywords?: string;
socialImage?: string;
robots?: string; // control search engine indexation of pages
rssLink?: Rss... |
import { Component, OnInit } from '@angular/core';
import { EmotionService } from 'src/app/emotion-service.service';
@Component({
selector: 'app-search-component',
templateUrl: './search-component.component.html',
styleUrls: ['./search-component.component.css']
})
export class SearchComponentComponent implements... |
/* eslint-disable prefer-promise-reject-errors */
import { Message, MessageReaction, TextChannel } from 'discord.js';
import { debounce, noOp, sleep, Time } from 'e';
import { Extendable, ExtendableStore, KlasaMessage, KlasaUser } from 'klasa';
import { ReactionEmoji, SILENT_ERROR } from '../../lib/constants';
import ... |
import {
Component, ComponentBindings, JSXComponent, OneWay,
} from 'devextreme-generator/component_declaration/common';
import { AllDayPanelRow as Row } from './row';
import { AllDayPanelCell as Cell } from './cell';
import { getKeyByDateAndGroup } from '../../../utils';
import { ViewCellData } from '../../../types.... |
export class Employee
{
public Id: number;
public Name: string;
public value: any;
} |
import Debug from 'debug';
import { EventEmitter as Events } from 'events';
import { AnyId } from 'anyid';
import Error from '@kim5257app/js-error';
import * as express from 'express';
import Server, { ServerEventParam } from './server';
// eslint-disable-next-line import/no-cycle
import Socket, { Options as SocketOpt... |
import React from 'react';
import { RaceDistance } from '../defy/models';
import styled from 'styled-components';
import { humanizeDuration } from '../defy/models'
interface Props {
distance: RaceDistance,
time: number,
}
const H2 = styled.h2`
width: 100%;
text-align: center;
`
const TitleBar: React.... |
import React from 'react';
import { Text, View } from 'react-native';
import { withTheme, IThemeProps } from '../../core/theme/with-theme';
import stylesProvider from './styles';
import { smartConnect } from '../../core/utils/smart-connect';
export interface IExternalProps {
word: string;
style?: any;
styl... |
import { UsuarioService } from './../../usuario/usuario.service';
import { Injectable } from '@nestjs/common';
import { JwtService } from '@nestjs/jwt';
@Injectable()
export class AuthService {
constructor(
private userService: UsuarioService,
private jwtService: JwtService,
){ }
async validateUser(userEma... |
export const environment = {
API_URL: 'https://api.mercadolibre.com/',
MELI_ITEMS_URL: 'sites/MLA/search',
MELI_ITEM_URL: 'items',
MELIT_ITEM_DESC_URL: 'description',
}; |
import axios, { AxiosResponse } from 'axios'
export class GraphQLError extends Error {
errors: any
data: any
variables: any
query: string
constructor(result: AxiosResponse<any>, query: string, variables?: any) {
const message = result.data.errors.map((e: { message: string }) => e.message).... |
/*
* Copyright 2021 The University of Manchester
*
* 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 ... |
import React, {
useState,
createContext,
useCallback,
useEffect,
useMemo,
useContext,
} from "react";
import { getTotalIncome } from "../services/income";
import { getTotalOutcome } from "../services/outcome";
export const TransactionsContext = createContext({} as BalanceProviderData);
export interface Ba... |
import { Chain, Guard, NamedChain, Waiter } from '@ephox/agar';
import { Optional, Result } from '@ephox/katamari';
import { Css, Scroll, SugarElement, Traverse } from '@ephox/sugar';
import { assert } from 'chai';
import { Bounds } from 'ephox/alloy/alien/Boxes';
import { Positioning } from 'ephox/alloy/api/behaviour... |
import { Injectable } from '@angular/core';
@Injectable()
export class CharacterManagementService {
constructor() {
var reader = new FileReader();
reader.readAsDataURL(new Blob());
}
getItem( key ) {
if (localStorage.getItem(key) === null) {
console.log('null');
localStorage.setItem( key... |
/**
* https://demo.thi.ng/umbrella/hiccup-carbon-icons/#CERTIFICATE_CHECK
*/
// prettier-ignore
export const CERTIFICATE_CHECK: any[] =
["svg", { viewBox: "0 0 32 32" },
["path", { d: "M6 16h6v2H6zM6 12h10v2H6zM6 8h10v2H6z" }],
["path", { d: "M14 26H4V6h24v10h2V6a2 2 0 00-2-2H4a2 2 0 00-2 2v20a2 2... |
// Type definitions for non-npm package Google Maps JavaScript API 3.43
// Project: https://developers.google.com/maps/
// Definitions by: Justin Poehnelt <https://github.com/jpoehnelt>
// Alex Muramoto <https://github.com/amuramoto>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
//... |
import { menus } from './hooks';
const packages = require('../packages/hooks/package.json');
export default {
// ssr: {},
exportStatic: {},
nodeModulesTransform: {
type: 'none',
exclude: [],
},
extraBabelPlugins: [
[
'babel-plugin-import',
{
libraryName: 'antd',
libra... |
import { Component } from '@angular/core';
@Component({
selector: 'not-found',
styleUrls: ['not-found.component.scss'],
templateUrl: 'not-found.component.html'
})
export class NotFoundComponent {
} |
export const resources = {
unauthorized: "You're not not authorized. You should log in first.",
credentialsIncorrect: "The provided credentials are incorrect.",
backupRestoredSuccessfully: "The backup was restored successfully. You need to log in again.",
notebookCreated: "The notebook was added success... |
import { Component, ViewEncapsulation, OnInit, OnDestroy, EventEmitter } from '@angular/core';
import { BsModalRef } from 'ngx-bootstrap';
import { FormGroup, FormControl, AbstractControl, Validators } from '@angular/forms';
import { ParserService } from '../../../shared/services/parser.service';
import { convertParseR... |
import { CoreAuthContextValue } from '@ivyhjk/amplify-react-core-auth';
import { CognitoUser } from 'amazon-cognito-identity-js';
export type AuthUser = CognitoUser;
export interface AuthContextValue extends
Omit<CoreAuthContextValue<AuthUser>, 'dispatch'> {
signIn: (username: string, password: string) => void;
... |
/**
* Copyright 2018 The Lovefield Project 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... |
/**
* A simple enum that contains valid HTTP methods
*
*/
enum RequestMethod
{
GET = 'GET',
POST = 'POST',
PUT = 'PUT',
PATCH = 'PATCH',
DELETE = 'DELETE',
HEAD = 'HEAD',
CONNECT = 'CONNECT',
OPTIONS = 'OPTIONS',
TRACE = 'TRACE'
}
export default RequestMethod |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.